Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to identify which Object ID is active inside a container

I have a container with a number of charts displayed inside it. I would like to change the caption of the container depending on which chart is displayed.

If my charts had object ID's of CH01, CH02,CH03 CH04 is it posible to create a formula in the Caption of the container that does something like

If ObjectID=CH01 then "Title should be this"


I can't find a way to reference which is the active chart object inside the container.

12 Replies
flipside
Partner - Specialist II
Partner - Specialist II

Hi Andrea,

Yes, you will have to hide the container object list by placing a standard listbox over it (ensuring the listbox has a higher layer value than the container).  It's a crude method but should work in plugin and AJAX. If AJAX is not working, make sure there are no MsgBox commands in your macro. Also there are some macro settings in QMC which might need adjusting - do you have other macros working in other documents?

The values in the "ID" field can be anything you want as long as they are unique, but if not using 0, 1, 2, 3 etc your macro code would need to translate the value to whatever index number the object is in the container.

flipside

agigliotti
Partner - Champion
Partner - Champion

Hello,

I understood what you suggested me but when I show the container with the active object requested from listbox the user can see all other container objects and thus he may activate any of these.

Finally I should hide my inputbox (outside the container) but I can't because I can't catch this event.

The macro works well also in Ajax using Firefox browser, before I was using WebView in developer that doesn't works.

I hope will be a trigger with the container object in coming version.

Thank you for your interest.

Best regards

Andrea

Not applicable
Author

Hey,

   I can use that hide container tab and instead of that listbox. but in my dashboard I need zoom in that. then it is not showing during zoom that chart.

So, is there any other solution other then listbox?

Thanks,