Skip to main content

Posts

Showing posts with the label dataSet Lookup code for enterprise portal ax 2012

dataSet Lookup code for enterprise portal ax 2012

List list; Query query; args = new Args(); list = new List(Types::String); list.addEnd(fieldstr(ProjTable, ProjId)); list.addEnd(fieldstr(ProjTable, Name)); list.addEnd(fieldstr(ProjTable, Status)); sysDataSetLookup.parmLookupFields(list); sysDataSetLookup.parmSelectField('ProjId'); // Call query query = projTimeSheet_ds.getProjectIDQuery(); // Pass the query to SysDataSetLookup so it result is rendered in the lookup page. sysDataSetLookup.parmQuery(query);