Skip to main content Skip to complementary content

initialProperties property

initialProperties()

Property used to specify the properties your object should have when first created. Can be defined as hyper cube (qHyperCubeDef) or as a list object (qListObjectDef).

You also set up all custom properties and assign your custom properties default values.

The maximum number of cells (qWidth * qHeight) allowed in an initial data fetch is 10,000. If you want to retrieve additional data, you need to retrieve it in chunks using the getData method call in the Qlik Sense Backend API.

Examples

Information noteNote that you need to define how many rows and columns you should get in the initial fetch.

Example: An example using a hyper cube

initialProperties : {
	qHyperCubeDef : {
		qDimensions : [],
		qMeasures : [],
		qInitialDataFetch : [{
			qWidth : 2,
			qHeight : 50
		}]
	}
}

Example: An example that uses a list object and also defines some custom properties

initialProperties : {
	qListObjectDef : {
		qShowAlternatives : true,
		qFrequencyMode : "V",
		qInitialDataFetch : [{
			qWidth : 2,
			qHeight : 50
		}]
	},
	fixed : true,
	width : 25,
	percent : true,
	selectionMode : "CONFIRM"
}

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!