Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello anybody knows how to show in GUI controls the value of a calculated variable?
Thanks
Marco
use a text box and set it to =$(<your variable name>) to trouble shoot your variable content at any one time.
I have just tried this but it still return the string and not the content variable.
Marco
If your variable is numeric put it in a KPI object as you have it and it should work.
Can you post me a qvf with an example?
Marco
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.
Can you share the exact variable definition ? If there is a logic error nothing will make it correctly render.
So is it possible to debug a date variable?
Marco
If you turned your date into a number for debugging. using date#() you could use the method I supplied previously.
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