How to export the total rows of the grid

Hi All,

am facing an issue, where according to the request the results will be coming to the grid. But when i export the results from the grid, it is fetching only first page i.e 10 rows to the excel . What should i modify, so that it will fetch the entire grid results to the excel export. Do i need to change anything in PM?

Please find the reference code.

a!buttonLayout(
secondaryButtons: a!buttonWidget_23r3(
label: "Export ",
saveInto: {
a!startProcess(
processModel: cons!SM_EXPORT_BATCHES_ORDERED_PROCESS_MODEL,
processParameters: {
batchTransDetails: local!batchDs.data,
selectedSiteFulfillStatusId:local!selectedSiteFulfillStatusId,
selectedSiteSubOrderStatus:local!selectedSiteSubStatus,

isPSM: toboolean(
local!isSM
)/*orderId:rf!orderId,*/
/*project:"POS",*/
/*fulfillSiteId:4,*/
/*selectedRep:1*/

},
onSuccess: {
a!save(
local!documentId,
fv!processInfo.pv.documentId
)
}
)
}
 

  Discussion posts and replies are publicly visible