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 in
  • roles: This is an array of strings that contains the roles associated with the user
  • serverLocalDate: This is the timestamp of the server
  • serverUTCDate: This is the UTC timestamp on the server
  • sessionTimeout: This is the time timeout interval for the session
  • path: This is the dashboard path in the Pentaho repository
  • locale: 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.