Home > Forum > Actions > Coloring Item List Cell when Value change

Coloring Item List Cell when Value change
0

Hello all,

Hope you're doing great!

Does anyone configured a rule that will color a cell in a item list upon value change?

I have an item list that will be initialized with values and if the user changes one of them, I want that cell to be marked so it's easier to check the value.

I have found some examples but it's using a rule (like > than X) and it's painting the entire row. In the new release there are new item list actions which allow to paint one cell but I don't know how to write the change value (probably I will have to use SQL command for this).

Any ideas?

Thank you all

Andreia

MVP

Hello,

For more information about coloring rows check this KB article https://community.webcon.com/posts/post/coloring-the-background-of-the-item-list/195/22
In shortcut, for coloring specific cell you need to return column name, and color value in sql statement, something like: SELECT 'DET_Att2', '#eeaaee'.

About tracking changes, it depends on your needs, but simplest solution can be adding technical column which will be storing 'YES' if value was changed or 'NO' if not, or you can write the statement based on list history using WFHistoryElementDetails table.

There is also great article from Kamil Nędza about tracking changes if you want more complex solution - https://alterpaths.com/quick-tip-2-tracking-form-field-change-in-webcon-bps/