Skip to main content Skip to complementary content

QFieldSelections

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

Class

QFieldSelections()

Selection state for a field.

Version history

Version history
Version state Details
Introduced 2.2

Properties

fieldName

Type: String

The field name.

qSortIndex

Type: Number

Sort index. Starting from 0.

field

Type: Field

Reference to the field.

locked

Type: Boolean

Defines if the field is locked.

isNumeric

Type: Boolean

Defines if the field is numeric.

totalCount

Type: Number

Total number of values in the field.

selectedCount

Type: Number

Number of selected values.

qSelectionThreshold

Type: Number

Number of values that will be listed.

qStateCounts

Type: Object

Object with number of values in different states.

qSelected

Type: String

Concatenated string of selected values if number of values are less than the threshold, or if the string is of format "7 of 123".

selectedValues

Type: Array

Array with maximum of qSelectionThreshold values that are selected. For each value, the text plus the selection mode (NORMAL/AND/NOT).

notSelectedValues

Type: Array

Array with maximum of qSelectionThreshold values that are not selected. For each value, the text plus the selection mode (NORMAL/AND/NOT).

Learn more

 

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!