Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
This function returns the number of available options of selectable fields. Disabled options will be ignored. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
numberOfAvailableItems(field) #Output: Number |
UI Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|
UI Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
This function is equivalent to | ||||||||||||||||||||||||||
Page properties | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
Short description | Returns the
Status | ||||
---|---|---|---|---|
|
%{...somefield})
.
UI Text Box | ||
---|---|---|
| ||
Disabled options are discarded. |
Parameters used in this function
Paramater | Input (data type) | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
field |
| The parameter must be a valid field code for a selectable field. |
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
This function returns a
|
UI Text Box | ||
---|---|---|
| ||
If you need the actual options instead of just the number try using availableItems() |
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Available since | Status | subtle | true | colour | Blue | title | 2.2.7 |
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | |||||||
---|---|---|---|---|---|---|---|
| |||||||
| |||||||
UI Text Box | |||||||
size | medium | type | info
count(availableItems(%{...somefield})) . Disabled options are discarded. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
numberOfAvailableItems(%{...somefield}) #Output: Number |
| |||||||||||
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
UI Expand | |||||||||||
|
Note |
---|
Disabled options are discarded. |
title | Output |
---|