PHP код:
DictTable dictTable;
DictFieldGroup dictFieldGroup;
identifiername fieldGroupName;
int i;
int j;
;
dictTable = new DictTable(tablenum(InventTable));
for (i = 1; i <= dictTable.fieldGroupCnt(); i++)
{
fieldGroupName = dictTable.fieldGroup(i);
info("Группа полей: '" + fieldGroupName + "' :");
dictFieldGroup = new DictFieldGroup(dictTable.id(), fieldGroupName);
for (j = 1; j <= dictFieldGroup.numberOfFields(); j++)
{
info(fieldid2name(dictTable.id(), dictFieldGroup.field(j)));
}
}