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
BedrockMission!

Learn More

View all

Sign in to view all badges

How to pass a variable value into a chart?

Avatar

Avatar
Level 1
laamed
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
laamed
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
laamed
Level 1

03-04-2017

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 2
SamitJain
Level 2

Like

1 like

Total Posts

8 posts

Correct Reply

5 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
SamitJain
Level 2

Like

1 like

Total Posts

8 posts

Correct Reply

5 solutions
Top badges earned
Boost 1
Affirm 5
Affirm 3
Affirm 1
View profile
SamitJain
Level 2

30-04-2017

Hi Laamed,

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

Thanks,

Samit

Answers (0)