FormControlCancelableSuperEventArgs ce = e as FormControlCancelableSuperEventArgs; ce.CancelSuperCall();
[FormControlEventHandler(formControlStr(AssetParameters, VKInterfacesGroup_VKFixedAssetJournalNameId), FormControlEventType::Lookup)] public static void VKInterfacesGroup_VKFixedAssetJournalNameId_OnLookup(FormControl sender, FormControlEventArgs e) { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange; SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(InventJournalName), sender); sysTableLookup.addLookupField(fieldNum(InventJournalName, JournalNameId)); sysTableLookup.addLookupField(fieldNum(InventJournalName, Description)); queryBuildDataSource = query.addDataSource(tableNum(InventJournalName)); queryBuildRange = queryBuildDataSource.addRange(fieldNum(InventJournalName, JournalType)); queryBuildRange.value(SysQuery::value(InventJournalType::Asset)); sysTableLookup.parmQuery(query); sysTableLookup.performFormLookup(); FormControlCancelableSuperEventArgs ce = e as FormControlCancelableSuperEventArgs; ce.CancelSuperCall(); }
DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.
Authors are allowed to set their own AdSense units and "buy me a coffee" link.
Join us.