Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
marco_puccetti
Partner - Creator
Partner - Creator

Qliksense Variables

Hello anybody knows how to show in GUI controls the value of a calculated variable?

Thanks

Marco

12 Replies
ogster1974
Partner - Master II
Partner - Master II

use a text box and set it to =$(<your variable name>) to trouble shoot your variable content at any one time.

marco_puccetti
Partner - Creator
Partner - Creator
Author

I have just tried this but it still return the string and not the content variable.

Immagine.png

Marco

ogster1974
Partner - Master II
Partner - Master II

If your variable is numeric put it in a KPI object as you have it and it should work.

marco_puccetti
Partner - Creator
Partner - Creator
Author

Can you post me a qvf with an example?

Marco

ogster1974
Partner - Master II
Partner - Master II

Here you go.

I have a variable set default as 0

using qsVariable extension I have added a button on the page that sets the value as 1,2,3 the KPI is used to display variable value,

Note this will only work with numeric variable values.

JonnyPoole
Employee
Employee

Can you share the exact variable definition ? If there is a logic error nothing will make it correctly render.

marco_puccetti
Partner - Creator
Partner - Creator
Author

So is it possible to debug a date variable?

Marco

ogster1974
Partner - Master II
Partner - Master II

If you turned your date into a number for debugging.  using date#() you could use the method I supplied previously.

marco_puccetti
Partner - Creator
Partner - Creator
Author

I've tried and using $(variable) it works also for dates.

Another question, i need to get a variable content from a mashup application but using this code (note the variable is a computed date):

app.variable.getContent('variable',function ( reply ) {

  var sTemp = JSON.stringify( reply );

  var json_parsed = JSON.parse(sTemp);

  //alert (json_parsed);

  sTemp = json_parsed.qContent.qString;

  alert("value: "+sTemp);

  } );

i get the variable text value and not the computation of its content, how can i do to get the real content?

Thanks

Marco