#Task formRun.task(#taskF5);Variant #2:
FormDataSource formDataSource; formDataSource = formRun.dataSource(tableId2Name(tableNum(SalesTable))); formDataSource.executeQuery();Variant #3:
FormDataSource formDataSource; List list; ListEnumerator le; list = formRun.rootFormDataSources(); if(list && list.elements() > 0) { le = list.getEnumerator(); while(le.moveNext()) { formDataSource = le.current(); if(formDataSource.table() == tableNum(SalesTable)) { formDataSource.research(true); break; } } }
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.