how to get notified, if user change custom widget theme from the appearance in the setting

I want an event or variable that holds the current theme of custom widget
for example, if the user changed mapped device or data points, we get information in the config variable
similarly, how to get the current theme of the custom widget?

Hi,

widgets and their configuration are basically ManagedObjects. You could use an Apama EPL App like below, to get a change event of that.

monitor MySampleMonitor {
	action onload() {
		monitor.subscribe(ManagedObject.SUBSCRIBE_CHANNEL );
		on all ManagedObject(id="<Dashboard id. could be found in url>") as mo{
			log "Dashboard Update: " + mo.toString() at INFO;
		}
	}
}

You then could inspect certain values in the ManagedObject for any change you would like to track. Find a detailed description here:

http://www.apamacommunity.com/documents/10.5.3.2/apama_10.5.3.2_webhelp/apama-webhelp/#page/apama-webhelp%2Fco-ConApaAppToExtCom_cumulocity_using_managed_objects.html%23wwconnect_header

Regards,

Marco

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.