470
Views
2
Comments
Solved
[OutSystems Data Grid] How to set conditional format to the aggregate row
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.53.14 (Build 61243)

How can i set a conditional format to the aggregate row like the column conditional format?

The font of the total price should turn red if the total amount is negative.

The Css-Class in the style sheet that i use looks like this

The "SetColumnAggregate" Client Action haven't any option to configure the conditional format and i haven't found any documentation about the GridAPI from Javascript.

2020-08-05 09-00-16
Gabriel Lundgren
Solution

Hello Sebastian,


As of now we don't support this, however with some JS you can achieve what you want. You'd need to add a JS node on Grid's Initialize event.

The snippet would look something like this:

I've attached an OML containing a running example so you can have a look. 


Please bear in mind that we didn't make all the necessary tests to ensure that it will work on all cases. 


Regards,

Gabriel

AggregateConditional.oml
UserImage.jpg
Sebastian Hornetz

Thanks for your help.  It works.

I know it for the next time.


Regards,

Sebastian

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.