cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Need to make a widget visible/invisible from different buttons

bzindy
8-Gravel

Need to make a widget visible/invisible from different buttons

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

ACCEPTED SOLUTION

Accepted Solutions
ttielebein
14-Alexandrite
(To:bzindy)

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!

View solution in original post

2 REPLIES 2
ttielebein
14-Alexandrite
(To:bzindy)

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!

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

Announcements


Top Tags