xArgs.lookupField Method [AX 2012]

Gets or sets the field ID in a table to use to look up a specified record.

public FieldId lookupField([FieldId value])

Run On

Called

Parameters

value
Type: FieldId Extended Data Type
The value to set; optional.

Return Value

Type: FieldId Extended Data Type
The field ID of a field in a table to use to look up a specified record.

The returned value can be used by the called object to look up the specified record in the LookupRecord method or the string specified in the LookupValue method.

  • For example, the field to look up could be set with the following:

  • xArgs.lookupField(fieldnum(TableName, FieldName));

Community Additions

ADD
Show: