setContent method
app.variable.setContent(name, content)
Method used to set variable content.
Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Variable name. |
| content | String | Variable content. |
Returns
Returns a promise of a RPC reply.
Example
var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d');
app.variable.setContent('MYVAR','=(1+1)');