Shut down Ax Application through Button click

void clicked() { info  i = new info( ); super(); i.shutdown(true); }

Advertisements

View Lookup Ax 2012

Public Void lookup(FormControl _formControl, str _filterStr) { Query query = new Query(); Systablelookup systablelookup; QueryBuildDataSource Qbds; systablelookup = Systablelookup::newParameters(tablenum(FiloHrGradeTypeView),_formcontrol); Qbds= query.addDataSource(tablenum(FiloHrGradeTypeView)); systablelookup.addLookupField(fieldNum(FiloHrGradeTypeView, GradeType)); systablelookup.addLookupField(fieldNum(FiloHrGradeTypeView, Description)); systablelookup.addLookupField(fieldNum(FiloHrGradeTypeView, JobTypeId)); systablelookup.addLookupField(fieldNum(FiloHrGradeTypeView, LeaveTypeId)); systablelookup.parmquery(query); systablelookup.performFormLookup(); }

Form classes in AX 2012.

static void createForm(Args _args) { Args args; Form form; FormRun formRun; FormBuildDesign fbDesign; FormBuildDataSource fbDS; FormBuildGridControl fbGrid; FormBuildTabControl fbTab; FormBuildTabPageControl fbTabPage1; DictTable dictTable; FormControlType fctTabPage = FormControlType::TabPage; FormControlType fctTab = FormControlType::Tab; FormControlType fctGrid = FormControlType::Grid; form = new Form(); dictTable = new DictTable(tablenum(VendTable)); fbDS = form.addDataSource(dictTable.name()); fbDS.table(dictTable.id()); fbDesign = form.addDesign("Design"); fbDesign.caption("Customer information"); fbTab = fbDesign.addControl(fctTab, … Continue reading Form classes in AX 2012.