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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
oxiofrt
Partner - Creator
Partner - Creator

Minimizing several objects with a button

Hi,

Actions related to button are really useful. I use them to restore / minimize some of my charts.
Is it possible to specify to restore or minimize several objects within the same action ? How ?

I would like to avoid the use of variables.
Thanks a lot for your help !

1 Solution

Accepted Solutions
Not applicable

Hi

The following macro minimizes all objects on the active sheet.

sub MinimizeAll
Objects = ActiveDocument.ActiveSheet.GetSheetObjects
For j = lBound(Objects) To uBound(Objects)
set obj = Objects(j)
obj.Minimize
next
end
sub

/Fredrik

View solution in original post

4 Replies
Not applicable

Hi

The following macro minimizes all objects on the active sheet.

sub MinimizeAll
Objects = ActiveDocument.ActiveSheet.GetSheetObjects
For j = lBound(Objects) To uBound(Objects)
set obj = Objects(j)
obj.Minimize
next
end
sub

/Fredrik

oxiofrt
Partner - Creator
Partner - Creator
Author

Thanks a lot for your answer.
I can do it with acros but I would like to avoid using them. New actions available in QV9 often can replace them.

Something cool would have been to have the ability to specify several Objects ID in the action (as shown in the screen capture herefater).
Thanks , bye

Not applicable

Hi,

For button you can define more than one action, so why don't you try to add one action to minimize for each object you have in sheet?

Andris

oxiofrt
Partner - Creator
Partner - Creator
Author

Thanks for your answer.

That is the way I proceed for the moment.

But I am not satisfied with it, because as soon as I have more than 5 objects to minimize, it would be really more useful to specify all of them into only one action Big Smile

Mr. Qlikview, if you hear me :
- please add a possibility to find objects ID directly from the action form
- please add a list of values inside the formula assistant