Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to pass a variable value into a chart?

laamed
Level 1
Level 1

I have a question about passing variables across Web Application.

- On PAGE1 I have declared a variable, brand_name.

- On PAGE2, a basic HTML-element prints out the variable when using syntax <%= ctx.vars.brand_name %>, so context works fine.

- But, when trying to use the same variable in a CHART-element (also on PAGE2 on page), the webapp preview debug mode says "XTK-170018 Parameter of query 'ctx/vars/brand_name' is not defined in current context."

- The variable would be used in a filter with condition "something" [equals] $(ctx/vars/brand_value)

Does anyone know how should I pass variable values into the chart-element?

1 Accepted Solution
SamitJain
Correct answer by
Level 2
Level 2

Hi Laamed,

Could you try $(ctx/vars/@brand_value) instead?

Thanks,

Samit

View solution in original post

1 Reply
SamitJain
Correct answer by
Level 2
Level 2

Hi Laamed,

Could you try $(ctx/vars/@brand_value) instead?

Thanks,

Samit

View solution in original post