How to color full federated items in the grid?

Hi,

maybe somebody has an idea how to solve this one. I have a full federated ItemType that contains a couple of yes/no columns. The data is displayed as standard grid in Aras. I want to highlight the yes/no values in the grid.

Coloring regular ItemTypes is possible with an onAfterGet Method that overwrites the CSS property. There are samples available in this forum that show how to do it. 

But this approach doesn´t work for full federated Items, as the physical table inside Aras is empty and we just lock at datasets from another database.

I already discovered, that I can fill the Aras 'CSS'  property in the SQL-view that I use for quering the data. But unfortunately, my current SQL view is very complex. I would have to do a lot of SQL queries for building the correct stylesheet string for the CSS property column. 

Does anybody know a simpler approach to solve this use case?

Thanks for any feedback!
Angela

Parents Reply Children
  • Not sure how you would go about doing that... 

    Tree grid does not use the standard grid, it uses a separate HTML page to generate a view. eg /Modules/aras.innovator.TreeGridView/Views/MainPage.html you would have to ensure any css field was being interpreted correctly by this page (and not being overridden elsewhere).

    This also means that many of the more useful features are not available are not available (e.g. search, order by, hide columns).

    Many thanks,
    Martin