GILOOKUPF
Overview
The GILOOKUPF function returns the value of a column from a generic inquiry by specifying a Filter to be applied on the server and the Keys of the row to locate.
Syntax
This is the syntax for this function:
=GILOOKUPF(Connection, Name, Filter, Column, Key1, Key2, ...)
Arguments
This function has the following arguments:
Arguments | Required/Optional | Description |
| Required | The name of the connection, as specified in the Connection Manager |
| Required | The name of the generic inquiry. |
| Required | The condition that determines which records should be selected from the inquiry. The recommended way to construct this argument is by using the GIFILTER helper function. Otherwise, see Advanced Filtering in GI Functions. |
| Required | The name of the column from which the value will be returned. |
| Required | The values for every key column of the generic inquiry. Those will be used to locate the data row in the generic inquiry result set. |
|
|
|
... |
|
|
|
|
|
Example
=GILOOKUPF("Demo", "VelixoReportsPro-Accounts", C8, "Type", 219)
Description: Suppose the key for the "VelixoReportsPro-Accounts" generic inquiry is configured to be the AccountID
field. The above formula will then:
Fetch the result set from the generic inquiry, applying the filter specified in the cell C8.
Retrieve a record where the value of the key column (AccountID) is 219.
Return the value of the Type field for this record.
Result: Asset
Additional Notes
For each Generic Inquiry that you use with the GILOOKUPF function, you will need to explicitly specify the inquiry's key columns in the Generic Inquiries Options section of the Velixo options window.