Through the Find and detailFind function, fields of type List Deployable to Other Category (LDAOC) can be defined using a formula.
A formula in this type of field must return one of this three possible results:
- The document Id number.
- A text corresponding to a document code.
- The result of a call to the Find function.
- The result of a call to the detailFind function.
The function returns the first document found according to the order and conditions specified.
List_field: is the name of the Dropdown List in the “child” category, where the document from the parent category is selected. Its syntax is a tag like <@CategoryCode:Group:Field>. For example, in the category Country, we can search among its States by entering in List_Field the value:
Order: is a text string for sorting. It indicates by which field or fields we want to sort the results. The syntax must include the name of one or more fields separated by commas. After each of them we will specify the ASC or DESC clause to indicate the sorting direction. For example, to find the first States of the Country in alphabetical order, order should have the value:
Condition: is an optional parameter with a T-SQL condition text string of the same type used in the Dropdown Lists. It allows us to filter the search results. For example, to search only among the States of this Country starting with Al, we would use for Condition the value:
If the Country were Spain, the value in this list would automatically show Ćlava.