Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get container's selected object's caption

I have a container that contains two tables.

I need a text object to display the selected object's caption.

How can I do that?

Thanks in advance!

4 Replies
anthony_kinsell
Creator
Creator

Hi,

Not quite sure if I am understanding you correctly. Do your tables display side by side? Or are they single?

I think you need to use the GetCurrentSelection function perhaps.

Otherwise you can just enter something like the following in Title Text area of the caption tab:

 

='Budget vs Actual ' &  Year & ' ' & Quarter & ' ' & OwnerName & ' ' & Property

Not applicable
Author

Let's say I have a container that contains three table boxes with captions set as "A","B","C". I a text object whose value I would like to change as I switch between these three table boxes in my container. When I switch to table box "A", I want my text object to display "A". Fairly simple I guess!

Not applicable
Author

I think this might be of help:

http://community.qlik.com/message/120792

Not excatly what you want but you can tweak the macro and get the desired result.

jagan
Luminary Alumni
Luminary Alumni

Hi,

There is no Inbuilt function to get the current container object, so instead of using a container use buttons and variables to show and hide the charts.

Hope it helps you.

Regards,

Jagan.