Open a form and its child form through code

Args                    argsForm; FormRun             formRun; FormRun             subformRun; argsForm = new Args(formstr(SalesTable)); argsForm.record(SalesTable::find(“S0000548”)); formRun = classFactory.formRunClass(argsForm); formRun.init(); formRun.run(); //Now open sub-form ((InventOnHandReserve)…

Only 1Checkbox should be checked

public boolean modified() { boolean ret; ZLG_CustMarket custMarket; ret = super(); if(Grid_DefaultPredicastMarketCode.value() == NoYes::Yes) { update_recordset custMarket setting DefaultPredicastMarketCode =…

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…