# ListObjectDef

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

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qStateName | Name of the alternate state.<br>Default is current selections *$* . | String |
| qLibraryId | Refers to a dimension stored in the library. | String |
| qDef |  | [NxInlineDimensionDef](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxinlinedimensiondef.htm) |
| qAutoSortByState |  | [NxAutoSortByStateDef](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxautosortbystatedef.htm) |
| qFrequencyMode | Defines the frequency mode. The frequency mode is used to calculate the frequency of a value in a list object.<br>Default is *NX\_FREQUENCY\_NONE* .<br>This parameter is optional.<br><br>One of:<br><br><ul><li>N or NX_FREQUENCY_NONE</li><li>V or NX_FREQUENCY_VALUE</li><li>P or NX_FREQUENCY_PERCENT</li><li>R or NX_FREQUENCY_RELATIVE</li></ul> | String |
| qShowAlternatives | If set to true, alternative values are allowed in *qData* .<br>If set to false, no alternative values are displayed in *qData* . Values are excluded instead.<br>The default value is false.<br>Note that on the contrary, the *qStateCounts* parameter counts the excluded values as alternative values.<br>This parameter is optional. | Boolean |
| qInitialDataFetch | Fetches an initial data set. | Array of [NxPage](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxpage.htm) |
| qExpressions | Lists the expressions in the list object.<br>This parameter is optional. | Array of [NxListObjectExpressionDef](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxlistobjectexpressiondef.htm) |
| qDirectQuerySimplifiedView | If set to true, reduces the set of states returned.<br>Supported for Direct Query mode only.<br>Default is false. | Boolean |

## See also

[Create a list object](https://help.qlik.com/en-US/sense-developer/November2024/csh/engineapi/create-listObject)

[Get the layout of a generic object](https://help.qlik.com/en-US/sense-developer/November2024/csh/engineapi/get-layout-generic-object)

[ListObject](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-ListObject.htm)