Can access a context variable of a Dashboard from a layout or page?

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! :slight_smile:

Hi @Jonathan_Calderon,

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).

Let me know if this helps.

Thank you,

1 Like

Thanks for the help Heath. :slight_smile:

1 Like