DictType.relationObject Method [AX 2012]
Provides information about relations that are defined for an extended data type or a specified array element by returning a DictRelation object.
public DictRelation relationObject([int arrayIndex])
Run On
CalledParameters
- arrayIndex
- Type: int
Return Value
Type: DictRelation ClassA DictRelation object that provides information about relations.
In the following example, the relationObject method returns the DictRelation object for the XMLMapDimension extended data type.
DictType dicttype;
DictRelation dictrelation;
dicttype = new DictType(extendedTypeNum(XMLMapDimension));
dictrelation = dicttype.relationObject();
if(dictrelation)
{
print "Relation lines: " + int2str(dictrelation.lines());
}
else
{
print "No relations defined.";
}
Community Additions
ADD
Show: