Hi @jatin,
Are you going to have a different map layout (assuming diagram) for each customer? I’m guessing that you have 5 now but it’s going to be an expanded requirement in the future as you add more customers. If i’m correct in these assumptions, we need to come up with a dynamic way to show the appropriate content in the future.
I’m thinking that you should probably create a new dashboard for each map layout, perhaps starting from a template dashboard so that each looks consistent. Maybe you could name each dashboard to correspond to the security hierarchy attribute and have a script that automatically shows the correct mini dashboard in the main dashboard based on who is looking at it?
Something like this:
- Main Dashboard is opened and ready interaction fires
- Have a script that checks the custom attribute of the current user and then loads the correct dashboard using a view container.
if (dundas.context.currentSession.customAttributes[0] == ‘someClientId’)
{
// Choose the content that should be displayed based on the attributes and show it
}
- Use a view container to show the content
https://www.dundas.com/Support/support-center/support-articles/designing/using-a-view-container
- Set the source of the dashboard on the fly using a script. This video that i did will help you since we are in many ways using the same concept.
https://www.dundas.com/resources/off-the-charts-tips-from-an-expert/build-it-dream-it-self-service-dashboard
Hopefully this give you sort of pseudo-steps to create this.