Watermarking Sanctioned/Non-Sanctioned Data
This applies to: Managed Dashboards, Managed Reports
A requirement that may be associated with data governance is the ability to watermark content based on approved/non-approved data, for example when power users are doing self-service analysis with IT-certified data as well as personal data files, and sharing it with others.
With the provided open APIs, you can use script to watermark datasets and content based on whether or not sanctioned data sources are used. This article provides a sample of how the visualizations in a dashboard can be watermarked to certify data using JavaScript and CSS overrides.
Prerequisite
This sample requires basic familiarity with JavaScript and CSS.
Organizing Sanctioned Data
As a best practice, sanctioned or company approved data should reside in a repository that can be controlled by an administrator. Any metric set that is based on said data can then be watermarked when they are created using the certified data sources or data model in the repository.
Symphony provides users with a Global project where content that is meant to be shared across all projects would reside. Every project other than Global project has a Shared folder for project items such as data connectors, data cubes, metric sets etc. Any item created in the Global project will be accessible from the Shared folder of any other project. This ensures that the data is consistent and valid across all dashboards and reports built regardless of the projects.
The sample below has a dashboard for ad-hoc analysis created by a power user. Any metric sets the analyst uses from the Shared folders will be watermarked as certified official data, however any metric sets that the analyst creates on the fly for analysis will not be watermarked.
Dashboard Setup
Open a dashboard ready for sharing in Edit mode.
Add the following script to the Ready actions of the dashboard. This script gets all the metric sets on the dashboard and adds a watermark to them.
Note: This script can be modified to change the watermark content, format etc.
To add the watermark on only specific visualizations regardless of which project they belong to, or to add different watermark comment on different visualizations, you can fetch a metric set by its visualization ID instead of getting all the metric sets of the project as in the script above.
To get the ID of the visualization, select it and go to the Properties window. In the Actions tab under Actions Metadata, find ID. This is the visualization adapter ID (adapters plug controls such as visualizations into the application). Copy and paste this adapter ID into the script below:
Watermarking all Dashboards in the Instance
The above script can also be added to the application styling so it runs for all the dashboards in that instance and not just a specific dashboard.
The following changes have be made to the script if you want to add it to the override file:
Test the Dashboard
Open the dashboard in Sandbox View mode.
Note: Switching a dashboard that is already open from edit mode to view mode will not trigger a script added to the Ready event.
The dashboard will have the watermarks on metric sets that have been used for the Shared folder (i.e., belong to the Global project) containing the IT developed and approved official data.
For more information, see:
Comments
0 comments
Please sign in to leave a comment.