AOTTableFieldList.addInteger Method [AX 2012]
Adds a new field of the integer type to the list of fields for the current table.
If the supplied name coincides with an existing field in the field list, an integer is appended to the name of the new field to make the field name unique.
The developer must make sure that the name is not a reserved word; the method will not throw an error if a reserved word is specified. You can use the AOTfindChild method to determine whether a field name is already being used.
The following code example adds the NewInteger field, which is of the integer type, to the list of fields for the TutorialJournalName table.
AOTTableFieldList tfl = infolog.findNode(
'\\Data Dictionary\\Tables\\TutorialJournalName\\Fields');
if (!tfl.AOTFindChild('NewInteger'))
{
tfl.addInteger('NewInteger');
}
Community Additions
ADD
Show: