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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to see values stored in variable ?

Like in unix shell scripts or oracle we can see the value that was stored in a variable using echo $variable , dbms.output.putline() respectively...

Similarly , how can i see the value stored in a variable using my script ?? is there any command available ?? or i can see it only in the list box.??

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Make sure that the variables actually holds the value once the script execution is finished.

     To make sure this, you can go to setting -> variable overview.

     Here you will find all the variables and their values.

     If the variable has the value, then create a text box and use =VData and it will show values.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

16 Replies
tresesco
MVP
MVP

command :  TRACE  $(YourVariable)

Not applicable
Author

Thanks for your reply.  In the script editor , I included a line as below

Let VData='Test Display' &'-'&'Value';

TRACE $(VData);

When I try to display it in a text object to see the output of my variable value

=TRACE $(VData); it was not showing any value

Regards

Sathya

tresesco
MVP
MVP

try sleep(10000) after trace .

Not applicable
Author

thanks for your quick reply, I could see the value while running the .qvw file.  But can I display that in a text object ?? how ?

Not applicable
Author

U can debug the code one by one instead of reload.

Regards,

Kabilan K.

tresesco
MVP
MVP

front end?

text box expresssion: = $(variablename)

Not applicable
Author

and u can display the varible in text box through below structure.

=$(YourVariableName)

Regards,

Kabilan K.

Not applicable
Author

thanks .. I could see the output for the variable value while doing debug step by step..

But with the above expression it was not displaying the value in the front end text object ??

=$(VData);

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Make sure that the variables actually holds the value once the script execution is finished.

     To make sure this, you can go to setting -> variable overview.

     Here you will find all the variables and their values.

     If the variable has the value, then create a text box and use =VData and it will show values.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!