AX allows arrays to be defined, but while fetching information through the .NET Business Connector, it shows as a single field. E.g: Dimension is set by:
axRec.setField("Dimension[1]","A");
axRec.setField("Dimension[2]","B");
axRec.setField("Dimension[3]","C");
// and so on...
How do I know how many fields "Dimension" have?
AX supports a compile time function
dimOfto return the count, but that is not available from .Net!To rescue comes the
DictFieldclass:X++ code:
You can make a X++ utility function, then call that: