Skip to main content
5-Regular Member
November 28, 2016
Solved

Need to make a widget visible/invisible from different buttons

  • November 28, 2016
  • 1 reply
  • 2804 views

Hi,

I can not make a given widget be hidden clicking on a button and shown clicking on another.

The issue is that the widget visible property can be linked to only one service.

So i tried to create a javascript program

var params = {

  visible: false /* BOOLEAN */

};

var result = me.OkButton_visible(params);

But it does not modify anything.

Can someone share with me the right way to do that?

Cheers

Bruno

Best answer by ttielebein

Wait, what exactly is the use case? Can you create a toggle visibility service that can then be triggered by both on-click events? Then this one service can be bound to the isVisible property. Hope this helps!

1 reply

5-Regular Member
November 29, 2016

Wait, what exactly is the use case? Can you create a toggle visibility service that can then be triggered by both on-click events? Then this one service can be bound to the isVisible property. Hope this helps!

bzindy5-Regular MemberAuthor
5-Regular Member
November 29, 2016

Thanks Tori, you got what i needed indeed. What you presented should work just fine i believe.

Just one more question, is there a way to identify through some javascript functions what is the origin of the alert that triggered a service?

Cheers

Bruno