static void krishh_ParentRelation(Args _args)
{
TableId tableId = tablenum(SalesTable);
TableId extTableId;
FieldId fieldId = fieldnum(SalesTable, CustAccount);
DictField dictField;
DictType dictType;
DictRelation dictRelation;
;
dictField = new DictField(tableId, fieldId);
dictRelation = dictField.relationObject();
extTableId = dictRelation.externTable();
if (extTableId)
info(tableid2name(extTableId));
}
{
TableId tableId = tablenum(SalesTable);
TableId extTableId;
FieldId fieldId = fieldnum(SalesTable, CustAccount);
DictField dictField;
DictType dictType;
DictRelation dictRelation;
;
dictField = new DictField(tableId, fieldId);
dictRelation = dictField.relationObject();
extTableId = dictRelation.externTable();
if (extTableId)
info(tableid2name(extTableId));
}
Hi, does this work for extended data types ecorescolor, config and size as well? I can't seem to get it to work? Thanks in advance!!
ReplyDeleteHi this post was for AX2009, I didnt tried in AX2012, because in AX2012 all relations functionality was changed, So i dont think it will work for ax2012 most of the relations.
DeleteRegards,
krishna.