Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Franz_Lackner
New Contributor

Change active tab in container programmatically

Proposed macro in  https://community.qlik.com/message/262564 does not work with QV version 12 ++

Labels (3)
2 Replies
Franz_Lackner
New Contributor

Re: Change active tab in container programmatically

sub ContTabSelect0

set MV_ContainerObj = ActiveDocument.GetSheetObject("CT13")
Set MV_ContProp = MV_ContainerObj.GetProperties
MV_ActiveIndex2 = MV_ContProp.SingleObjectActiveIndex
MV_ActiveIndex2 = 0
MV_ContProp.SingleObjectActiveIndex = MV_ActiveIndex2
MV_ContainerObj.SetProperties MV_ContProp

End Sub
Support
Support

Re: Change active tab in container programmatically

This was an issue that I brought up to R&D a while ago. Those who are using certain versions QlikView will notice that these properties no longer produce the desired result. The API for getting the active object and changing the active object programmatically can be found in this article with examples: https://support.qlik.com/articles/000070090