Skip to main content Skip to complementary content

Generic object

A generic object can for example be a sheet, a list object, or a hypercube. It is hierarchical, meaning that it contains the definition of all its children and grandchildren.

A generic object can also be the concatenation of multiple generic objects. For example, it can be both a list object and a chart, containing the definition of a list object as well as the definition of a chart.

Dynamic properties can be added to a generic object and these properties are persisted. For more information on dynamic properties, see Properties that can be set (in Qlik Engine API).

Hypercube definition

Most visualization that comes built-in with Qlik Sense are based on a hypercube definition (qHyperCubeDef) on root level. A hypercube can contain both dimensions and measures. If selections are applied to a hypercube, only the selected values are displayed.

You can have multiple hypercubes in your properties (initialProperties). This allows you to make advanced visualizations that combine several data sets. If you have multiple hypercubes, you need to place them at different paths in your property structure.

Example: Multiple hypercubes definition

initialProperties : {
		version : 1.0,
		qHyperCubeDef : {
			qDimensions : [],
			qMeasures : [],
			qInitialDataFetch : [{
				qWidth : 10,
				qHeight : 50
			}]
		},
		second : {
			qHyperCubeDef : {
				qDimensions : [],
				qMeasures : [],
				qInitialDataFetch : [{
					qWidth : 10,
					qHeight : 50
			}]
		}
	}
}

List object definition

A list object is a visualization that contains one dimension. When getting the layout of a list object (qListObjectDef), all values are rendered. If selections are applied to a list object, the selected values are displayed along with the excluded and the optional values.

Just like you can have multiple hypercubes in your properties, you can also have multiple list objects. If you have multiple list objects, you need to place them at different paths in your property structure.

Example: List object definition in List template

initialProperties: {
	version: 1.0,
	qListObjectDef: {
		qShowAlternatives: true,
		qFrequencyMode: "V",
		qInitialDataFetch: [{
			qWidth: 2,
			qHeight: 50
		}]
	}
},

String expression

A string expression is an expression that returns a single string value.

Example:  

version : {
	qStringExpression : "=QlikViewVersion ()"
},

Expression value

An expression value is an expression that returns a single numeric value.

Example:  

fields : {
	qValueExpression : "=Count (DISTINCT $Field)"
}

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!