// Identify the mandatory Fields
--------------------------------------------------------------------------------------
static void mandatoryfields (Args _args)
{
DictTable dictTable;
DictField dictField;
int i, cnt;
dictTable = new DictTable(tableNum(CustTable));
cnt = dictTable.fieldCnt();
for (i= 1; i<=cnt;i++)
{
dictField = new DictField(tableNum(CustTable),dictTable.fieldCnt2Id(i));
if (dictField.mandatory())
{
info (strFmt("Field %1 is mandatory.",dictField.label()));
}
}
}
--------------------------------------------------------------------------------------
static void mandatoryfields (Args _args)
{
DictTable dictTable;
DictField dictField;
int i, cnt;
dictTable = new DictTable(tableNum(CustTable));
cnt = dictTable.fieldCnt();
for (i= 1; i<=cnt;i++)
{
dictField = new DictField(tableNum(CustTable),dictTable.fieldCnt2Id(i));
if (dictField.mandatory())
{
info (strFmt("Field %1 is mandatory.",dictField.label()));
}
}
}
No comments:
Post a Comment