Skip to Content
Former Member
May 20, 2008 at 07:36 AM

Macro with pushbutton - Toggle functionality?



any ideas on how we can achieve Toggle functionality with a Macro assigned to a Pushbutton in the dataview.

What I want to do is the following:

1) Users drilldown on product.

2) Users can click a pushbutton to call a macro which hides some of the products in the drilldown (using function PLOB_DATA_VISIBLE, according to predefined criteria)

3) Now if the users click the same pushbutton again, I want all the products to be visible again.

=> Thus clicking the button, the users will toggle between Hiding some products and showing all products.

I don´t really know if this toggle thing can be achieved, grateful for any help. Otherwise we will just have to go for two pushbuttons, one to hide, one to show, but it is not as elegant.