Skip to main content

Posts

Showing posts with the label argument passing in axapt

How to use arg for output and display menu items in MSDAX

How to use arg for output and display menu items public static void main(Args args) { VendPurchOrderJour vendPurchOrderJour; PurchTable purchTable; ; if(args.dataset() == tablenum(VendPurchOrderJour)) { vendPurchOrderJour = args.record(); select purchTable where purchTable.PurchId == vendPurchOrderJour.PurchId; if(purchTable.CustomsImportOrder_IN == noYes::Yes) new MenuFunction(menuitemoutputstr(TestPurch), MenuItemType::Output).run(args); else new MenuFunction(menuitemoutputstr(TestS), MenuItemType::Output).run(args); } }