create method
app.variable.create(qProp)
Method used to create a variable.
- Since:
-
- 1.0 for name parameter;
- 2.1 for full properties
Parameters
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
qProp | String | Object |
Variable name or properties. Properties:
|
Returns
Returns a promise of a variable model.
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.create('MYVAR');
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!