Dashboard context
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 ...
Get Learning Pentaho CTools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.