Hi All,
The Following Code will let you know the List of Mandatory Fields in a table :-
The Following Code will let you know the List of Mandatory Fields in a table :-
static void CheckMandatoryFieldsOnTable(Args _args) { DictTable dictTable; DictField dictField; int i; TableId tableId = tablenum(custtable); ; dictTable = new DictTable(tableId); for (i=1 ; i<=dictTable.fieldCnt() ; i++) { dictField = new DictField(tableId, dictTable.fieldCnt2Id(i)); if (dictField.mandatory()) { info(dictField.name()); } } }
Enjoy DAX !!!
Dear Friends, In this Article I will show you how to enable UAT database access for Development machine using just-in-time (JIT). Many time...
No comments:
Post a Comment