Skip to main content Skip to complementary content
Close announcements banner

createSessionVariable method

app.variable.createSessionVariable(qProp)

Method used to create a session variable, that is a temporary variable that is not persisted and needs to be recreated for each new session.

Since:
  • 2.1

Parameters

Name Type Description
qProp String | Object

Variable name or properties. Properties:

Name Type Description
qInfo.qId String Optional. Variable id.
qName String Variable name.
qComment String Optional. Comment.
qDefinition String Optional. Variable definition.
qNumberPresentation Object Optional.
qIncludeInBookmark Boolean Optional. Include in bookmark flag.

Returns

Returns a promise of a 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.createSessionVariable({qName : 'myvar', qDefinition: 'Month'});

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!