Hey Drew,
From what I can tell, you don’t have access to $currentObject because this is a datagrid, not a dataview. Intuitively, I feel like this should work but it seems like Mendix doesn’t like it. If you had a containing dataview around this datagrid, the object from the dataview is what would be accessible here via $currentObject, but I know that’s not what you’re trying to do.
To get what you want with mendix, maybe use a listview with two visibility controlled containers based on the system, each with the respective background color you want for the given system. I’m not super familiar with the datagrid 2 but that may also be a viable option that provides a little more flexibility for styling/formatting than a normal datagrid.
Hope this helps!
Hi Drew Miller,
You could try what is suggested from this other Forum question.
I hope that helps you, regards!