How to update widget on Client Refresh

2
How do I update a widget when I do a "Refresh in client", when my widget is not tied to a specific attribute? If anything changes on the in-memory entity, my widget needs refreshing. Currently it only updates if I do a full save of the entity.
asked
1 answers
2

see http://apidocs.mendix.com/

_Widget.subscribe() and Processor.subscribe methods:

this.subscribe({
  guid     : myobject.getGUID(),
  callback : function() {
    console.log('changed')
  }
});

Note that this responds only to changes, not to creates or deletes.

answered