Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Rich5678
Contributor III
Contributor III

How to use Button to dynamically change content in a simple Table

Hi,

I have the following simple data.

Load * inline [
Fruit,NY_Price,CA_Price
Orange,1.5,2.25
Apple,1.25,3.85
Mango,2,4.4
Banana,0.5,0.25
];

I will have 2 buttons like below 

Rich5678_0-1692304841454.png

I want to use only one simple table.
And when I click on New York, it should show below:
(PLEASE Note that the Column Header does Not say "NY_Price", but a generic label "Market Price"

Rich5678_1-1692305144012.png

Similarly, when I click on California, the same Table should show the following:
(PLEASE note again that the column header is a generic label "Market Price", does not say "CA_Price"

Rich5678_2-1692305281426.png

Sincerely appreciate, if someone can help.

Thanks, in advance

 

 

 

 

 

1 Solution

Accepted Solutions
Digvijay_Singh

Button action and Variable combination can help to achieve this, sample app attached. Check out variable setting in the button actions.

 

View solution in original post

2 Replies
Digvijay_Singh

Button action and Variable combination can help to achieve this, sample app attached. Check out variable setting in the button actions.

 

Rich5678
Contributor III
Contributor III
Author

Many thanks..
Exactly what I was looking for
Best Regards