Expand my Community achievements bar.

SOLVED

How to pass a variable value into a chart?

Avatar

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

Avatar

Correct answer by
Level 2

Hi Laamed,

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

Thanks,

Samit

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

Hi Laamed,

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

Thanks,

Samit