# GenericVariableProperties

## Properties

| Name | Description | Type |
| --- | --- | --- |
| qInfo |  | [NxInfo](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxinfo.htm) |
| qMetaDef | Used to collect meta data.<br><br>Properties<br><br>Semantic type with an empty structure. | [NxMetaDef](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-nxmetadef.htm) |
| qName | Name of the variable.<br>The name must be unique.<br>This parameter is mandatory. | String |
| qComment | Comment related to the variable.<br>This parameter is optional. | String |
| qNumberPresentation | Sets the formatting of a field.<br>The properties of *qFieldAttributes* and the formatting mechanism are described below.<br><br>Formatting mechanism<br><br>The formatting mechanism depends on the type set in *qType,* as shown below:<br><br>Information note<br><br>In case of inconsistencies between the type and the format pattern, the format pattern takes precedence over the type.<br><br>Type is DATE, TIME, TIMESTAMP or INTERVAL<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the formatting is as defined in <em>qFmt</em> .</li><li>If <em>qFmt</em> is empty, the formatting is defined by the number interpretation variables included at the top of the script ( <em>TimeFormat</em> , <em>DateFormat</em> , <em>TimeStampFormat</em> ).</li><li>The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> are not used.</li></ul><br><br>Type is INTEGER<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the formatting mechanism uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , no formatting is applied. The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> and the number interpretation variables defined in the script are not used .</li></ul><br><br>Type is REAL<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , and if the value is almost an integer value (for example, 14,000012), the value is formatted as an integer. The properties <em>qDec</em> , <em>qThou</em> , <em>qnDec</em> , <em>qUseThou</em> are not used.</li><li>If no format pattern is defined in <em>qFmt</em> , and if <em>qnDec</em> is defined and not 0, the property <em>qDec</em> is used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li><li>If no format pattern is defined in <em>qFmt</em> , and if <em>qnDec</em> is 0, the number of decimals is 14 and the property <em>qDec</em> is used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li></ul><br><br>Type is FIX<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of the script ( <em>DecimalSep</em> and <em>ThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , the properties <em>qDec</em> and <em>qnDec</em> are used. If <em>qDec</em> is not defined, the variable <em>DecimalSep</em> defined at the top of the script is used.</li></ul><br><br>Type is MONEY<br><br>The following applies:<br><br><ul><li>If a format pattern is defined in <em>qFmt</em> , the engine looks at the values set in <em>qDec</em> and <em>qThou</em> . If these properties are not defined, the engine uses the number interpretation variables included at the top of any script ( <em>MoneyDecimalSep</em> and <em>MoneyThousandSep</em> ).</li><li>If no format pattern is defined in <em>qFmt</em> , the engine uses the number interpretation variables included at the top of the script ( <em>MoneyDecimalSep</em> and <em>MoneyThousandSep</em> ).</li></ul><br><br>Type is ASCII<br><br>No formatting, *qFmt* is ignored. | [FieldAttributes](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/EngineJSONAPI/Content/models-fieldattributes.htm) |
| qIncludeInBookmark | Set this property to true to update the variable when applying a bookmark. The variable value will be persisted in the bookmark.<br>The value of a variable can affect the state of the selections.<br>Script variables cannot be persisted in the bookmark.<br>The default value is false. | Boolean |
| qDefinition | Definition of the variable. | String |