Set colour of header by database attribute

Set colour of header by database attribute

Hi Guys,
I have created a multi-Tenant app. I want each Tenant to alter their own colour scheme e.g. for the header.
So my thinking was to create a 'Customise' entity with fields to allow each tenant to set their preferences.

Specifically I have a colour attribute on a screen that allows them to insert a hexcolour when saved in the database I want the header to change colour.

How do I reference the colour that has been chosen?
Hi Gary,

One way of doing it would be to override the Header class in an unescaped expression that could be for instance in the header web block.

On the preparation you would fetch the hex color for the tenant and then put write it on an unescaped expression.

Thank you for the tip.. works exactly as required now