Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is any button available for (Expand/Colapse All)

I want simple button of 'Expand/Colapse All' on sheets.How can I add it???

(for qlikview version 11.2)

6 Replies
Gysbert_Wassenaar

There's no way to do that. Not with macro's, not with button actions. No way at all afaik.


talk is cheap, supply exceeds demand
marcus_sommer

Try this:

sub ExpandCollapseDimensions

set chart = ActiveDocument.GetSheetObject("CH21")

set gp = chart.GetProperties

gp.TableProperties.PivotAlwaysFullyExpanded = false'true

chart.SetProperties gp

end sub

- Marcus

Not applicable
Author

Thanks Marcus Sommer....

Tell me how can I use that script in Qlikview.

No any function of "ExpandCollapseDimensions'' in qlikview

marcus_sommer

Create a button, insert action, extern, execute macro and set the name from macro - ExpandCollapseDimensions. You could also it trigger by selection/change from fields/variables.

- Marcus

Not applicable
Author

thanks...

Its not collapse fully after clicking on button

marcus_sommer

ObjectID is changed?

set chart = ActiveDocument.GetSheetObject("YOUROBJECTID")