Skip to main content Skip to complementary content

setNumValue method

app.variable.setNumValue(qName, qVal)

Method used to set variable numeric value.

Since:
  • 2.1

Parameters

Name Type Description
qName String Variable name.
qVal Number Variable value.

Returns

Returns a promise of a RPC reply.

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

Example

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
	app.variable.setNumValue('MYVAR',5);

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!