Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

Reference Data Sources in Form.

$
0
0

Hello,

So the question is: how to add Reference Data Source in Form using Form class.

Code looks something like this: 

static void createForm()
{

    Form form;
    FormBuildDataSource formBuildDataSource;
...

    form = new Form();

    dictTable = new DictTable(tablenum(CustTable));
    formBuildDataSource = form.addDataSource(dictTable.name());
    formBuildDataSource.table(dictTable.id());

  ...
}
And I would love to add a Reference Data Source for example with HcmWorker table.
Any ideas how to do that?

Viewing all articles
Browse latest Browse all 9880

Trending Articles