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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
rcandeo
Creator III
Creator III

How can I know wich table is active inside a conteiner?

Hi, I have a conteiner with three tables and beside one selection box.

I wanna see in this selection box, only the fields regarding with the respective table.

I think the best option would be creating three diferents slection box knowing wich table is active and hiding the other two selection box.

Is that makes sense or has another easier way?

In case not, how can I know wich table is current being showed to the user?

Best

Robson

Labels (1)
1 Reply
whiteline
Master II
Master II

Hi.

You can get the current selected object with the macro:

Set ContainerObj = ActiveDocument.GetSheetObject("CT01")

set ContProp=ContainerObj.GetProperties

ActiveObject=ContProp.SingleObjectActiveIndex

msgbox("Active Object=" & ActiveObject & " Id=" & ContProp.ContainedObjects.Item(ActiveObject).Id)

But It seems there is no suitable trigger to use it.

You'd better to use separate objects and emulate the container logic with variables. So that you can use the same conditions to show the appropriate listbox.