Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

zadravecm
New Contributor II

Error in creating the variable in Visual extension

Hi,

I am creating the visual extension inside Qlik Sense.

I try to create new variable inside it, but getting error all the time...

var app = qlik.currApp();

app.variable.create({qName : 'myVariable', qDefinition: 0});

The error that I get is:

Error from Engine: Object {jsonrpc: "2.0", id: 134, error: Object}...

I know that it was working for me previously, but now I don't know what is wrong...

1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: Error in creating the variable in Visual extension

Hi,

qDefinition should be a string: https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/Var...

So try changing it to a string, or removing it.

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
1 Reply
erik_wetterberg
Honored Contributor

Re: Error in creating the variable in Visual extension

Hi,

qDefinition should be a string: https://help.qlik.com/en-US/sense-developer/September2017/Subsystems/APIs/Content/CapabilityAPIs/Var...

So try changing it to a string, or removing it.

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser