Page History
Panel | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||
MAXUse this function to determine Determines the maximum value of a list or collection. The MAX function has two syntax forms: the collection form and the list form. You can use the collection form to determine the maximum value of all occurrences of an attribute. The list form is used to determine the maximum value of a set of different attributes. 1. Collection form syntax
Input
2. List form syntax
Inputs
Examples Suppose the following domain model.
Example with strings
Include Page | | _nav_BackToTop | _nav_BackToTop | ||||||||||||||||||||||||||||||
Panel | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
COUNTUse this function to retrieve the number of instances for the specified entities or attributes. Please note the similar function SIZE. Syntax
Return type
Examples Suppose the following data model. | |||||||||||||||||||||||||||||||||
Instance | Person.name | ||||||||||||||||||||||||||||||||
1 | “John” | ||||||||||||||||||||||||||||||||
2 | “Dave” | ||||||||||||||||||||||||||||||||
3 | “Jane” | ||||||||||||||||||||||||||||||||
4 | “Lisa” | ||||||||||||||||||||||||||||||||
Instance | House.rooms | ||||||||||||||||||||||||||||||||
singleton | “living room”, “bathroom”, “bedroom” | ||||||||||||||||||||||||||||||||
Expression | Result | Type | |||||||||||||||||||||||||||||||
COUNT ( ALL Person ) | 4 | Integer | |||||||||||||||||||||||||||||||
COUNT ( House.rooms ) | 3 | Integer | |||||||||||||||||||||||||||||||
COUNT ( ALL Person + ALL House ) | 5 | Integer | |||||||||||||||||||||||||||||||
COUNT ( COLLECT Person FROM ALL Person WHERE ( Person.name = “Lisa” ) ) | 1 | Integer | |||||||||||||||||||||||||||||||
COUNT ( ? (= UNKNOWN) ) | UNKNOWN | Integer |
UI Text Box | ||
---|---|---|
| ||
SIZE and COUNT are similar except for ?: SIZE( ? ) results in 0, while COUNT( ? ) results in ? |
Back to top |
---|