Skip to main content

Posts

Showing posts with the label Dialog

Dialog and get value from dialog box using Axapta

Below is a Code how  to add dialog and get value from dialog box in dynamics Axapta. This is very simple you just need to create one method which is overridden method is dialog. Dialog method used to initialized dialog box for your form or report but without using get from dialog method you can not get value of dialog control. So both method is important dialog and getfromdialog. public Object dialog(Object _dialog) { DialogRunbase dialog = _dialog; DialogGroup dateGroup; ; dateGroup = dialog.addGroup(""); dateGroup.frameType(1); dateGroup.columns(2); fromdate = LedgerPeriod::findOpeningDate(systemdateget()); toDate= systemdateget(); dialog.addGroup("@SYS4083",dateGroup); dialogFromDate = dialog.addFieldValue(typeid(FromDate),fromDate,'',"@SYS67"); dialog.addGroup("@SYS8828",dateGroup) ; dialogToDate = dialog.addFieldValue(typeid(ToDate),toDate,'',"@SYS67"); dialog.addGroup