lookupValueByIndex("CollectionName", "AttributeName" , caseIndex) where the first two arguments are strings and refer to the name of another collection and the name of an attribute in that collection. The third argument is the index of a case in that collection. The result will be the value of the attribute for that case in the collection with that name.
Example: In a document that has a collection States, lookupValueByIndex("States", "Name", 3) would give "Arizona" as the result.
Note: This function does not update dynamically. Thus, in the example, if the name of the third state were changed to "AZ", this would not be reflected as the result of the function until a recomputation were forced.
|