Update icon style when datachange event fired
Hi,
May I know how do I update an icon style displayed on the Google map widget & tree widget (based on state-based formatting) whenever there is a data change event happened on a certain thing's property? I am able to display the icon style based on the property (bool type) state if manually/automatically reload the page. But I am not sure how to do this automatically whenever the data change event happen on the property?
Can you provide some advise on this (and provide some reference code snippet if scripting is required in this case)? I have tried invoke the Service that feed the data to Google Map and Tree widget through Javascript but it doesn't work. The same service if linked & invoked using ThingWorx mashup does work correctly so I guess is some issue with the java Scripting part?
Thanks in advance for your prompt support!

