How to change background color of a Container within a microflow.

Hi all, I’m trying to build this, what u can see in the picture in Mendix. As u see the different Boxes can have different color, depending on their status. Now the status is accessible in a Database. So I want to retrieve the status from the Database and then change the background color of the container. How is this possible in Mendix how can I talk with the Container within the Microflow and change the styling?  
1 answers

You can use dynamic classes for this. Add a class based on the status and in your styling ensure that the class sets the desired background color.