Skip to main content

Posts

Showing posts with the label orderdate

Add date range value from dialog to report through code in Axapta

This is a sample code to Add date range value from dialog to report through code in Axapta. This code is to use in report of Ax. Getfromdialog and dialog is overridden method in Ax report. public boolean getFromDialog() { ; cmbOfficeCode = dialogOffice.value(); // cmbProjId = dialogProjId.value(); DateType = dialogDateType.value(); fromdate = dialogfromdate.value(); todate = dialogtodate.value(); return true; } public Object dialog(Object _dialog) { DialogRunbase dialog = _dialog; ; cmbOfficeCode = InventId; cmbProjId = ProjId1; dialogOffice = dialog.addFieldValue(typeid(InventLocationId), cmbOfficeCode); //dialogProjId = dialog.addFieldValue(typeid(ProjId), cmbProjId); dialogDateType = dialog.addFieldValue(typeid(Irrigation_Date),"Select Date", "Select Date"); dialogFromDate = dialog.addFieldValue(typeid(FromDate), fromDate); dialogToDate = dialog.addFieldValue(typeid(ToDate), toDate); return dialo