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

Need to make a widget visible/invisible from different buttons

SOLVED
Highlighted
Regular Member

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

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Need to make a widget visible/invisible from different buttons

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
Highlighted

Re: Need to make a widget visible/invisible from different buttons

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

Highlighted

Re: Need to make a widget visible/invisible from different buttons

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

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!