Hi all,
I have created a Qlik Sense Mashup and I have a input field in HTML with type="number". I want to show the same input number to a Qlik sense KPI object that I have embedded in HTML page .
I have tried a lot of things , but couldn't find a proper solution .
this is the screenshot of my web page.
IF you have anything please share.
Thanks in advance
Regards,
M
Hi All, Got the Solution.
I have use Variable API to get the result .
First, created a variable in Qlik Sense app, assign a random value and then used this variable in KPI .
Then, Used app.variable.setStringContent('variable_name',value);
You can check this result using
app.variable.getContent('variable_name', function(reply){
console.log(reply);
});
Note: setStringContent() takes the value as a string datatype.
For more information follow the links:
setStringContent() Method and getContent() method .
Thanks,
M
Simple embedding will not work. Create a simple mashup project and handle the logic in js.
Thanks for the reply @karthiccr ,
I'm working on a mashup project but having difficulty with that logic in JS .
If you have any , it will really help.
Thank you
M
Hi All, Got the Solution.
I have use Variable API to get the result .
First, created a variable in Qlik Sense app, assign a random value and then used this variable in KPI .
Then, Used app.variable.setStringContent('variable_name',value);
You can check this result using
app.variable.getContent('variable_name', function(reply){
console.log(reply);
});
Note: setStringContent() takes the value as a string datatype.
For more information follow the links:
setStringContent() Method and getContent() method .
Thanks,
M