Refresh attribute in a custom widget

0
Hello, I am building a custom widget where I am passing value from my entity <property key="inputValue" type="attribute"> <caption>Caption</caption> <category>Settings</category> <description>The input attribute of the widget.</description> <attributeTypes> <attributeType name="String" /> <attributeType name="Integer"/> </attributeTypes> </property> I have managed sucessfully to display it, but when other widget changes value of entity, widget does not refresh.  with a default Text Box provided by mendix value has changed.   Any suggestion what can be wrong? where I should look for more info?   Thanks
asked
2 answers
2

You need to subscrive to that attribute to get the changes. See this post: https://forum.mendix.com/link/questions/9435 and this post: https://forum.mendix.com/link/questions/88680

Regards,

Ronald

 

answered
2

Hi,

Ronalds answer is correct. I just want to add, that proper handling of subscriptions is already implemented in the boilerplate, so it might bea easier to modify that code than writing everything from scratch.

-Andrej

answered