4 Jan 2016

Finding Formdatasources through X++ in AX 2012

static void LegenderFormDataSourcesFind(Args _args)
{  
    FormRun formRun;
    FormBuildDataSource formBuildDataSource;
    int i;
    Args args = new Args();
    args.name("SalesTable");
    formRun = ClassFactory.formRunClass(args);
    for(i=1 ; i<=formRun.form().dataSourceCount();i++)
    {  
       formBuildDataSource = formRun.form().dataSource(i);
       info(new DictTable(formBuildDataSource.table()).name());
    }
}

No comments:

Create number sequence in D365 FO

Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...