Oct 24, 2013

Finding primary key in a table

The following job gives the name the primary field

DictTable dictTable;
DictField dictField;
;
dictTable = new SysDictTable(tableNum(TaxTrans));
dictField = new SysDictField(dictTable.id(), dictTable.primaryKeyField());
 info(dictField.name());

No comments: