I need to the fields available in particular table and particular fieldGroup, Please advice
I need to the fields available in particular table and particular fieldGroup, Please advice
If you want the same code for AX 2012 and F&O, then you can't use the new metadata API in F&O. But you can use SysDictFieldGroup, because that exists in both versions.
For example:
TableId tableId = tableNum(MyTable); SysDictFieldGroup dictFieldGroup = new SysDictFieldGroup(tableId, tableFieldGroupStr(MyTable, MyGroup)); FieldName fieldName; int i; for (i = 1 ; i <= dictFieldGroup.numberOfFields(); i ) { fieldName = fieldId2name(tableId, dictFieldGroup.field(i))); info(fieldName); }
Both R3 and D365 please
In which version of AX?
André Arnaud de Cal... 291,661 Super User 2024 Season 2
Martin Dráb 230,379 Most Valuable Professional
nmaenpaa 101,156