Skip to main content Skip to complementary content
Close announcements banner

ListObjectDef

Overview

Defines the properties of a list object.

For more information about the definition of a list object, see Generic object definition.

Properties

Name Description Type
qStateName

Name of the alternate state.

Default is current selections $.

String
qLibraryId Refers to a dimension stored in the library. String
qDef Refers to a dimension stored in the list object.

Null or NxInlineDimensionDef

qAutoSortByState Defines the sorting by state.

Null or NxAutoSortByStateDef

qFrequencyMode

Defines the frequency mode. The frequency mode is used to calculate the frequency of a value in a list object.

This parameter is optional.

Default is NX_FREQUENCY_NONE.

One of:

• NX_FREQUENCY_NONE

• NX_FREQUENCY_VALUE

• NX_FREQUENCY_PERCENT. The percentage is between 0 and 100.

• NX_FREQUENCY_RELATIVE. Same as percent except that the relative value is between 0 and 1.

qShowAlternatives

If set to true, alternative values are allowed in qData.

This parameter is optional. The default value is true.

If set to false, no alternative values are displayed in qData. Values are excluded instead.

Note that on the contrary, the qStateCounts parameter counts the excluded values as alternative values.

Boolean
qInitialDataFetch Fetches an initial data set.

Array of NxPage

qExpressions

Lists the expressions in the list object.

This parameter is optional.

Array of NxListObjectExpressionDef
Information noteEither qDef or qLibraryId should be set, but not both. If both parameters are set the engine uses qDef definition.
Information noteIf the dimension is set in the object itself and not in the library, this dimension cannot be shared with other objects.
Information noteA dimension that is set in the library can be used by many objects.

Example

"qListObjectDef": { "qStateName": "$", "qLibraryId": "", "qDef": { "qGrouping": "N", "qFieldDefs": [ "Country" ], "qFieldLabels": [ "Country" ], "qSortCriterias": [ { "qSortByState": 0, "qSortByFrequency": 0, "qSortByNumeric": 0, "qSortByAscii": 0, "qSortByLoadOrder": 1, "qSortByExpression": 0, "qExpression": { "qv": "" } } ], "qNumberPresentations": [ { "qType": "U", "qnDec": 10, "qUseThou": 0, "qFmt": "", "qDec": ".", "qThou": " " } ] }, "qAutoSortByState": { "qDisplayNumberOfRows": -1 }, "qFrequencyMode": "EQ_NX_FREQUENCY_NONE", "qShowAlternatives": true, "qInitialDataFetch": [ { "qTop": 0, "qLeft": 0, "qHeight": 5, "qWidth": 1 } ] }

In this example, a list object is defined. Its dimension is Country. The sorting by load order is enabled and alternative values are allowed. The initial data fetch will bring the first five values of the dimension Country starting from the top left .

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!