Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Setting QV variables from the JS side

Hello there,

We are currently developing a document extension that needs to be able to create and set QV variables from the Javascript side. Is that possible? We have tried using the SetVariable(name, value)-function of the document object, but with no success unless the variable in question is already predefined either within the QV load script or the dedicated variable manager.

Thanks,

Martin

1 Reply
Alexander_Thor
Employee
Employee

Hey Martin,

No you can't create variables from the JS Api, they have to be created from within the QV Desktop client or at script reload.

However once the variables are present in your application you can interact with them through the Get and SetVariable functions.