Qlik Community
Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.
Join Us
sub test
Set ContainerObj = ActiveDocument.GetSheetObject("CT01")
set ContProp = ContainerObj.GetProperties
ActiveObject = ContProp.SingleObjectActiveIndex
msgbox("Active Object Index = " & ActiveObject & " Active Object = " & ContProp.ContainedObjects.Item(ActiveObject).Id)
ActiveObject = 1
ContProp.SingleObjectActiveIndex = ActiveObject
ContainerObj.SetProperties ContProp
msgbox("Active Object Index = " & ActiveObject & " Active Object = " & ContProp.ContainedObjects.Item(ActiveObject).Id)
end sub
sub test
Set ContainerObj = ActiveDocument.GetSheetObject("CT01")
set ContProp = ContainerObj.GetProperties
ActiveObject = ContProp.SingleObjectActiveIndex
msgbox("Active Object Index = " & ActiveObject & " Active Object = " & ContProp.ContainedObjects.Item(ActiveObject).Def.ObjectId)
ContainerObj.ShowSingleObject 1 'New function that uses less code to change active object.
msgbox("Active Object Index = " & ActiveObject & " Active Object = " & ContProp.ContainedObjects.Item(ActiveObject).Def.ObjectId)
end sub
Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.
Join UsSearch Qlik's Support Knowledge database or request assisted support for highly complex issues.
Submit a caseExperiencing a serious issue, please contact us by phone. For Data Integration related issues please refer to your onboarding documentation for current phone number.
Call Us