Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Attend QlikWorld 2020 and hear keynote speaker, Malcolm Gladwell. Register by February 29th to save $200. Learn More
Highlighted
sidneylu
Contributor III

Container question

Hello,

I'm looking for some suggestions here.

Let's say I have a container and it has two charts (CH1 & CH2).  When I click

on the CH1, I want to set a variable say vCH1 = 1. How would I do this?

Thanks

Tags (1)
4 Replies
Highlighted
trdandamudi
Honored Contributor II

Re: Container question

As far as my knowledge it is not possible. You can achieve this by using macros on IE and not with Ajax.

Also you can use  a button and a variable to show/hide these two charts outside of the container.

sergio0592
Valued Contributor II

Re: Container question

Hi,

Instead using container, in a lot of cases i prefer deal with text boxs. Mainly because text boxs allows what you're trying to achieve by defining variable value on clicking.

See my attached .qvw.

Regards

Highlighted

Re: Container question

Can you explain in contextual instead of simple the use case of variable set up. We may have better offers for you?

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Highlighted
sidneylu
Contributor III

Re: Container question

Thank you for all your inputs.

Thanks for sharing the idea of using a textbox to mirror the functionality of a container. 

The reason I asked how to set a variable when a chart inside a container is clicked is we have an app

that has this design.  We want to show some legends/labels to explain the different calculations on the chart.

For example, both CH1 & CH2 have a calculations called "Revenue".  However they have different meanings.

So I was thinking to use a textbox and have these definitions defined.  When CH1 is clicked, show TB1.

I am just giving a very simplified explanation here.  These charts have many other calculations which need to

be explained as well.