This procedure sets total value in the response. The total value is used by paging functionality.
Parameter | Type | Description | |
---|---|---|---|
total | 10U 0 | Mandatory | Pass total number of rows in selected data. The value wil pe put into control section of response. |
The doesn’t return any value. If programer uses this procedure in program then Aperio will automatically indcate in metadata that control parameter “total” is handled by RPG program.
Examples:
// Assume that the total rumber of rows was calculated in RPG
// program and the value was placed in xxTotal variable.
ctlSetTotal(xxTotal);
// The control parameter "total" in response will be set to xxTotal.