Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Saravanan_Desingh

Expression in TRACE?

I would like to clarify this query.

Can't I use Expressions in Trace as below?

Trace P=$(=Pick(3,$(vYesNo)));

Trace T=$(=Today());

I was able to do it thru Variables. But thought of verifying on this.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

As far as I know, the dollar sign expansion with expression can't be used anywhere in the script, hence it can't be used in TRACE statements neither.

I think it's a front end thing only.

View solution in original post

10 Replies
sunny_talwar

I think you are right, it seems that only variables are working with TRACE, unless it is a plan text

Saravanan_Desingh
Author

Hi Sunny,

I just want to trace few outputs in the Script.

Instead of defining a temp variable and displaying it in Trace, I tried giving the expression directly in the Trace and was expecting the result.

But it returns null.

Thanks for your confirmation, Sunny.

engishfaque
Specialist III
Specialist III

Dear Saran7de,

Trace with variable return variable value.

Trace with without variable return value as a string.

Kind regards,

Ishfaque Ahmed

Saravanan_Desingh
Author

Thank you for the response, Ishfaque Ahmed

swuehl
MVP
MVP

As far as I know, the dollar sign expansion with expression can't be used anywhere in the script, hence it can't be used in TRACE statements neither.

I think it's a front end thing only.

Saravanan_Desingh
Author

Thank you, Stefan.

I just realized, I was trying dollar-expansion in Trace.

swuehl
MVP
MVP

saran7de wrote:

Thank you, Stefan.

I just realized, I was trying dollar-expansion in Trace.

Just to clarify:

A dollar sign expansion of a variable is working in the script in general, but I believe the dollar sign expansion with expression is not working in the script.

Saravanan_Desingh
Author

Thank you swuehl

flagamba
Contributor III
Contributor III

Hello, thank you for your reply, but after several searches I can not find where the scope of the dollar sign expansion is defined. This seems to me unfortunately as a problem of the documentation that it would be good to review. Thank you for your attention.