Refresh form datasource from formRun

Variant #1:
#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;
            }
        }
    }

Search

About

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.
Join us.

Blog Tags