Alpana provides hooks to let you implement custom behavior when you embed inside your application.
You can subscribe to be notified of the event in Javascript, and get event properties.

First, embed the Dashboard in your application by using the “Embed in code (use jQuery)” code snippet.

Then in your code, you can do something like :

window.addEventListener('message', function (e) {
	if (e.data && e.data.name) {
		switch (e.data.name) {
			case 'onParametersChanged':
				const parameters = e.data.arguments;
				if (parameters && parameters.length) {
					alert(parameters[0].name
						+ ' value changed : '
						+ (parameters[0].values && parameters[0].values.length ? parameters[0].values.join() : 'null'));
				}
				break;
		}
	}
}, false);
Last modified: Apr 18, 2023

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment