How to sort in desc order a grid of a form

You put this code in the init methode of the datasource:


super()
this.query().dataSourceTable(tableNum(InventTable)).addSortField(fieldNum(InventTable, RecId),SortOrder::Descending);

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.