Ax 2012 Job to get Table fields
static void TableObjects(Args _args)
{
DictTable d = new DictTable(tableNum(AccountantLogisticsLocation_BR));
int i;
int cnt = d.fieldCnt();
str nameForLookup;
FieldId fieldid = d.fieldNext(0);;
for (i = 1; i <= cnt; i++)
{
if (!d.isDefaultData())
{
nameForLookup = d.fieldName(fieldid);
if (d.fieldSqlDefault(fieldid))//skip default table fields
{
info(nameForLookup);
}
else
{
continue;
}
fieldId = d.fieldNext(fieldId);
}
}
}
static void TableObjects(Args _args)
{
DictTable d = new DictTable(tableNum(AccountantLogisticsLocation_BR));
int i;
int cnt = d.fieldCnt();
str nameForLookup;
FieldId fieldid = d.fieldNext(0);;
for (i = 1; i <= cnt; i++)
{
if (!d.isDefaultData())
{
nameForLookup = d.fieldName(fieldid);
if (d.fieldSqlDefault(fieldid))//skip default table fields
{
info(nameForLookup);
}
else
{
continue;
}
fieldId = d.fieldNext(fieldId);
}
}
}
No comments:
Post a Comment