Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

getByName method

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

qlik.app.variable.getByName(qName)

Gets a variable by name.

Version history

Version history
Version state Details
Introduced 2.1

Parameters

qName

Type: String

Variable name.

Returns

A promise of a variable model.

Tip noteFor more information regarding a promise, see The Promise API.

Example

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config), myvar;
	app.variable.getByName('myvar').then(function(model){
		console.log(model);
	},function(errorObject){
		console.log(errorObject);
	}
);

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!