When the dashboard loads, there is also an object that will be available to get some information about the context where the dashboard is running. This object can be accessed using the variable that is instantiating the dashboard. Let's check the content of the object:
user
: This is the ID of the user that is logged inroles
: This is an array of strings that contains the roles associated with the userserverLocalDate
: This is the timestamp of the serverserverUTCDate
: This is the UTC timestamp on the serversessionTimeout
: This is the time timeout interval for the sessionpath
: This is the dashboard path in the Pentaho repositorylocale
: This is the language and locale that is set on the Pentaho server for the logged in user
Sometimes there is the need to add some more information when generating the dashboard, so CDF gives you the capability to add that information, and you are able to do this in two ways: using values from session variables directly in Pentaho, or using...