How to pass a variable value into a chart? | Community
Skip to main content
laamed
April 3, 2017
Solved

How to pass a variable value into a chart?

  • April 3, 2017
  • 1 reply
  • 1272 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by samijain1

Hi Laamed,

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

Thanks,

Samit

1 reply

samijain1Adobe EmployeeAccepted solution
Adobe Employee
April 30, 2017

Hi Laamed,

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

Thanks,

Samit