Hello everyone, I have a layout that contain a dashboard. Can access with javascript or handlebars to context variable to set a value that my dashboard need?
For example:
ctx.nameDevice = pageData.devices[0].name
Or maybe access the context variable from a workflow?
Thanks!
A great example of what you are looking to do is with our Industrial Equipment Monitor Template which uses a query parameter on the URL with a device ID to establish dashboard context.
In a Dashboard page you can set the dashboard page context based on the value from the Experience Context that is generated for the page (i.e. a value you return from a workflow in the pageData field).