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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Read QV-Variables via JavaScript

Hello everybody,


my problem is: if I define a variable in the desktop client (for instance: vTest = localTime()) i'm not able to access the interpreted content of that variable in the Ajax-client. I just can read "localTime()" as a String from the VariableMgr. The idea is to send the function-name "localTime()" to the QV-Server via Ajax (or to use the QMS-WebService API) and get the interpreted value as a response. Is that possible? Or even better: I send the name of the variable ("vTest") to the QV-Server and get the calculated content.

I can't find proper methods in the QMS-API nor "JS-API" 😞

->Workaround:  I could define input boxes dynamically via JS, access it, get the calculated content and remove the input box, but it's way too slow!

Can anybody help me out here?

Thanks in advance,

Lars

10 Replies
Alexander_Thor
Employee
Employee

Yes if you use LET variables it will work since it will calculate during reload and store that value into the qvw.

But if you want runtime values it seems you are out of luck with QV11 SR1.

For example wrapping a function around a user input variable would get you

vMyVar = =Sum($(vMyVar2))

and not the actual calculated value back.