AX1650
GetTableInfo data lookup
You can use GetTableInfo rows in a DataLookup data source to return information about a specified table.
The GetTableInfo data lookup supports similar query parameters as the GetTableInfo function, and can be used as a substitute for this function to improve file performance. The data lookup is intended to be used in cases where the queried value is not expected to change during the current file session, and therefore the value only needs to be queried once (or only after specific events).
To create a GetTableInfo data lookup, add a [GetTableInfo]
row to a DataLookup data source and add the appropriate parameter columns. For more information on creating the DataLookup data source, see Creating DataLookup data sources.
GetTableInfo parameters
[GetTableInfo]
rows use the following parameter columns. Within the DataLookup control row, these parameter names must be placed in square brackets—for example, [CodeName]
. The parameters can be placed in any order.
NOTE: If the entry for any parameter depends on a value returned by another data lookup row, then that row must be in a different data source and executed before this row is executed. For more information, see Dependent data lookups.
Parameter | Description |
---|---|
CodeName |
Specifies the table property to return. Use one of the following values:
The following options only apply to product systems, and are configured by product development and implementation consultants:
|
TableName |
The name of the table for which you want to return information. NOTE: If the table does not exist in the current system, the only code that will return a response is Exists. Otherwise, using an invalid table name will return an error. |
Example
The following screenshot of a DataLookup data source shows several GetTableInfo examples: