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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
AbhijitBansode
Specialist
Specialist

Problem with container object in QV10

Need to change active object in the container by using macro.
There are four charts in the container object viz.,Yearly,Half-Yearly,Quarterly,Monthly.

Time Format,selection list box contains Yearly,Half-Yearly,Quarterly,Monthly as possible values.
depending upon selection in the list box, active object of the container should change.

I've gone through the APIGuide app for the same and found the below code:

Set ContainerObj = ActiveDocument.GetSheetObject("CT01")
set ContProp=ContainerObj.GetProperties
ActiveObject=ContProp.SingleObjectActiveIndex

ActiveObject is giving the index of currently active object in the container.
I can also assign value to this property Like,

ContProp.SingleObjectActiveIndex=0 i.e. 1st object should get active.

but this script does not server the purpose.

need urgent help on this.

16 Replies
AbhijitBansode
Specialist
Specialist
Author

I also had the same requirement ..

I did lot r&d, but did not found any property which gives me currently "clicked" tab of the container object..

hence settled down with above approach...

but it fulfils my requirement..

if u get any workaround.. pls let me know..

Regards,

Sparten

Not applicable

Hi,

Of course, I'll let you know/

Listen, I tried to "cheat" QV:

I removed one of the objects (say ListBox) from the container, and placed it in the same tab sheet the container is. Then I chose settings->sheet properties->objects->selected the List Box outside the container. There I noticed that this object inherited the trigger that I already assigned to the container. In the end, I returned this LB to the container - but still it does'nt work.

I believe they will fix it in one of the next SRs.

I'm trying to find a way to report this bug to them.

Regards,

Yigal

giakoum
Partner - Master II
Partner - Master II

Hi

sheet properties -> Triggers(Tab) -> Sheet Object Event Triggers

Where is that? I only have Sheet Event Triggers

Not applicable

Hi,

In QV11 - select a sheet which contains a container object, then sheet->properties->objects(select the container object)->triggers...

But still the trigger works only when the container is activated, not when you select a tab in the container.

giakoum
Partner - Master II
Partner - Master II

I still only see sheet triggers, not object...

2012-09-28_0950.png

2012-09-28_0950_001.png

Not applicable

Right, although u can select an object, the trigger stil belongs to the sheet. Thats the problem.

Yigal Douchan

Not applicable

Try moving to QV SR2, which has just been released.