AX allows one to define Field Group ( E.g. Dimension ) as an Array in Extended Data Types. How do I get the array elements information, such as label and base type?
Code :
tID = dict.tableName2Id('CustTable');
counter = 0;
dt = new DictTable(tID);
if (dt)
{
counter = dt.fieldNext(counter);
while (counter)
{
df = dt.fieldObject(counter);
arrSize = df.arraySize();
if (df && arrSize > 1)
{
// Field group, get array elements and types ??
}
counter = dt.fieldNext(counter);
}
}
Thanks in advance.