Controlling Report Themes (Pre 2025_03)
Prior to the 2025_03 release, it was is not possible to assign a particular theme to a report. Instead, the report would pick up the default theme for the dashboard as a whole.
Below is how the theme would be listed in Global Settings, via the PI_STYLES variable.
In the example above the piBerry theme is being used. This theme includes a background colour of grey (#eeeeee).
This may be desirable as a background colour in the dashboard as a whole.
It is in this case creating the lines around the chart cells, but when we generate a report it will create a less desirable background.
In this case the pages are now grey - which will use a lot of ink if I print the report.
… however, we have a way around this.
Firstly we will copy the theme, and rename the copy to be known as piBerry Report.
Setting the background to white (#ffffff) - and then make any other report specific changes needed.
Next we need to set this theme in the Global Theme variable.
Now the reports will have the desired appearance.
However, the dashboard does not. Now we can set a PI_STYLES on any user or role.
If we want all users to have the piBerry role back for the dashboards - then the best thing to do is to add it as a variable on a role that is granted to everyone.
Then this role is granted to all users.
Now all users (with this role) will see the piBerry theme, and the reports will use the system piBerry Report theme.
So their dashboards look as,
Whilst reports generated look as,
Note users can still override or have themes overridden individually using this approach. This variable can also be set for all users through the API, or user Sync rather than through the UI.