Hi, I have created a grid using a interface, and when I am trrying to sort

Hi,
I have created a grid using a interface, and when I am trrying to sort the grid by clicking on the header cell, it gives me an error as fllows:

Interface Definition: Expression evaluation error: An error occurred while executing a save: Expression evaluation error: The save target must be a load() variable, process variable, or node input (or a rule input passed one of those three), but instead was: [startIndex=1, batchSize=-1, sort=]

Following is code snippet for the interface.

with(
local!pagingInfo: a!pagingInfo(1, -1),
local!deal: rule!ICAMS_getDealById(id: ri!dealId),
local!supplier: if(
/* RIM deals have blank supplier ID */
rule!APN_isBlank(local!deal.supplierId),
{},
rule!ICAMS_getSupplierById(local!deal.supplierId)
),
local!modules: rule!ICAMS_getDealModuleViewByDealIdAndActiveFlag(
dealId: ri!dealId,
pagingInfo: local!pagingInfo,
activeFlag: true,
selection: rule!ICAMS_querySelectionForAcq...

OriginalPostID-199415

OriginalPostID-199415

  Discussion posts and replies are publicly visible

Parents
  • ... bel: "Total Cost", field: "purchaseValue", data: apply(rule!ICAMS_calculateStandardCost, local!modules)),
    a!gridTextColumn(label: "Part Number", field: "newPartNumber", data: index(local!modules, "newPartNumber",{} )),
    a!gridTextColumn(label: "Info Record", field: "infoRecord", data: index(local!modules, "infoRecord",{} )),
    a!gridTextColumn(label: "SAP SLOC", field: "sapsLocation", data: index(local!modules, "sapsLocation",{} )),
    a!gridTextColumn(label: "PO#", field: "purchaseOrderNo", data: index(local!modules, "purchaseOrderNo",{} )),
    a!gridTextColumn(label: "RAM#", field: "ramNo", data: index(local!modules, "ramNo",{} )),
    a!gridTextColumn(label: "Book Value", field: "purchaseValue", data: apply(rule!APN_dollar(_, false), index(local!modules, "stdCost", {})))

    },
    value: local!pagingInfo,
    saveInto: local!pagingInfo
    )
    ...
Reply
  • ... bel: "Total Cost", field: "purchaseValue", data: apply(rule!ICAMS_calculateStandardCost, local!modules)),
    a!gridTextColumn(label: "Part Number", field: "newPartNumber", data: index(local!modules, "newPartNumber",{} )),
    a!gridTextColumn(label: "Info Record", field: "infoRecord", data: index(local!modules, "infoRecord",{} )),
    a!gridTextColumn(label: "SAP SLOC", field: "sapsLocation", data: index(local!modules, "sapsLocation",{} )),
    a!gridTextColumn(label: "PO#", field: "purchaseOrderNo", data: index(local!modules, "purchaseOrderNo",{} )),
    a!gridTextColumn(label: "RAM#", field: "ramNo", data: index(local!modules, "ramNo",{} )),
    a!gridTextColumn(label: "Book Value", field: "purchaseValue", data: apply(rule!APN_dollar(_, false), index(local!modules, "stdCost", {})))

    },
    value: local!pagingInfo,
    saveInto: local!pagingInfo
    )
    ...
Children
No Data