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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
SNB
Partner - Contributor III
Partner - Contributor III

How to get Variable value in mashup

Hello everyone, 

I want to have values of the variable that are created in the app presented in mashup. 

is there a documentation to guide me to fetch variable value to mashup ? 

 

PS: i'm using Qlik sense enterprise 

 

Thanks,

Labels (2)
1 Solution

Accepted Solutions
Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

Hello,

Get variable value in mashup

var app = qlik.currApp(this);



        var qix = this.backendApi.model.enigmaModel.session;


        var numericValue;


        qix.app.getVariableByName('vTestMode').then(function (variable) {


            variable.getLayout().then(function (variableLayout) {


                numericValue = variableLayout.qNum;


            });


        });

 

View solution in original post

3 Replies
Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

Hello,

Get variable value in mashup

var app = qlik.currApp(this);



        var qix = this.backendApi.model.enigmaModel.session;


        var numericValue;


        qix.app.getVariableByName('vTestMode').then(function (variable) {


            variable.getLayout().then(function (variableLayout) {


                numericValue = variableLayout.qNum;


            });


        });

 

SNB
Partner - Contributor III
Partner - Contributor III
Author

Thanks @Harsh_Gohil 

Harsh_Gohil
Partner - Contributor III
Partner - Contributor III

Welcome @SNB ‌‌ 😉