Programmatically Sorting the Instance List
Programmatically Sorting the Instance List
In the Windows Framework the filter or command handler can be coded to sort the instance list using the avListManager.DisplaySorted method:
invoke #avListManager.DisplaySorted ForBusinessObject(EMPLOYEES) ByColumn_1(ACOLUMN1) Ascending_1(FALSE)
invoke #avListManager.DisplaySorted ForBusinessObject(EMPLOYEES) ByColumn_1(ACOLUMN1) ByColumn_2(AKEY2)
The ByColumn parameter can be any of these values:
VISID1
VISID2
AKEY1 to AKEY5
NKEY1 to NKEY5
ACOLUMN1 to ACOLUMN10
NCOLUMN1 to NCOLUMN10
DCOLUMN1 to DCOLUMN5