Smartforms - Colouring a table cell depending on contents
I have a smartform table and I want to change the background colour of one cell depending on the contents of each line.
For example, in my internal table I have the following records:
In my smartform I have a table which loops at my internal table. I want the 'Yellow' line to have the background colour of yellow, the 'Red' line to have a background colour of red etc.
I've looked in my smartstyle sheet to see if I could create a paragraph format or character format with the different colours as backgrounds but I can only change the text colour using those.
I've created different line types with the cell coloured in, but can't insert an IF command before the table line in the 'Main Area' of the table. I can insert an IF command inside the line cell but that doesn't help me as I need to create a different line using the line type with the correct colour.
Can anyone see a solution to this?
Put the condition in the 'Condition tab' of the Rows you create from the linetypes