Context menu

This method adds an item “View Details” in the context menu. On clicking on view details, it opens the purchase…

Mandatory field

public boolean validate() { boolean ret = true; if (!field) { ret = checkFailed(“Enter the field value”); } return ret;…

Loop through datasource

salesLine_ds = _salesLine.dataSource(); for (localSalesLine = salesLine_ds.getFirst(true) ? salesLine_ds.getFirst(true) : salesLine_ds.cursor(); localSalesLine; localSalesLine = salesLine_ds.getNext()) { //Do your thing }

Jumpref method

This method adds an item “View Details” in the context menu. On clicking on view details, it opens the purchase…

Interface – Create a new entity

AxdBase Class public ZLG_Flow parmFlow(ZLG_Flow ZLG_Flow = ZLG_Flow) { ZLG_Flow = “OUT”; return ZLG_Flow; } extends AifDocument classdeclaration #define.Flow(‘Flow’) public…

How to sort in desc order a grid of a form

You put this code in the init method of the datasource: super() this.query().dataSourceTable(tableNum(InventTable)).addSortField(fieldNum(InventTable, RecId),SortOrder::Descending);