Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dynamic display of text object

In my app I have a Container with two Chart objects CH05 and CH06. On the same sheet I also have a separate Text Object.

However, I only want this Text Object to be shown when CH05 in the Container is Selected.  I guess I need to edit the Expression for the text shown in the Text box, but how do I do that?

Thanx for any suggestion on how to solve this problem

BR, Hans Kaminsky

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Marcus (and Anjos), Thank you for the clarification.

This solution seems to be a bit complicated, at least for me with my limited QV knowledge... And I intentionally I simplified the question. In reality my Container contains 10 different charts, and the text in the Text box must be hidden for 5 of them.

However, I figured out a simple solution for myself: Instead of showing the text in a Text box, I use the General/Window Title for each chart (with "Show Title in the Chart"-box ticked) for showing the text for each chart.

But thank you for your support!

BR/Hans

View solution in original post

6 Replies
Clever_Anjos
Employee
Employee

Unfortunately there is no way to know the container state.

A bettter approach is use buttons do hide/show the elements

Anonymous
Not applicable
Author

Hi Anjos,  Thank you for your suggestion!

However, my problem is that when the user selects the CH06 chart in the Container (i.e. instead of CH05), the text in the Textbox must automatically be deleted/hidden (or the entire Text box). I guess the approach you suggest implies that the button manually must be clicked by the user for the Text box to be hidden. Or have I misunderstood you, i.e. is there a way to automatically delete/hide the Text box (when CH06 is selected) using a button?

BR/Hans

marcus_sommer

The meaning was more to avoid the container itself and emulate it with a textbox as frame and textboxes/buttons for the container-objects which simply switch a visibility-variable. And your depending additional textbox could be controlled with the same variable.

- Marcus

Anonymous
Not applicable
Author

Hi Marcus (and Anjos), Thank you for the clarification.

This solution seems to be a bit complicated, at least for me with my limited QV knowledge... And I intentionally I simplified the question. In reality my Container contains 10 different charts, and the text in the Text box must be hidden for 5 of them.

However, I figured out a simple solution for myself: Instead of showing the text in a Text box, I use the General/Window Title for each chart (with "Show Title in the Chart"-box ticked) for showing the text for each chart.

But thank you for your support!

BR/Hans

Clever_Anjos
Employee
Employee

The idea behind my suggestion is eliminate the container and mimic it using buttons

Anonymous
Not applicable
Author

Yes I know (I understood that from Marcus Sommers post). But as I wrote, I used another approach to solve the problem. Well, thanks anyway. /Hans