Saturday, 20 February 2010

AX - get Extended Data Type label

To get an extended data type label.
static void getEDTLabel(Args _args)
{
    Dictionary dict;
    DictType dictType;
    TreeNode treeNode = TreeNode::findNode("Data Dictionary\\Extended Data Types\\ABCModelType");
    ;
    dict = new Dictionary();
    dictType = dict.typeObject(dict.typeName2Id(treeNode.treeNodeName()));
    
    info(treeNode.treeNodeName());
    info(dictType.label());
}

No comments: