Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change ROW color in smartform on certain condition.

Former Member
0 Kudos

Hi Exparts,

I have design a smartform with a inter table.

I have to change row color of the table by the vale of internal table .

e.g. it_iab has column cost% contain value

10

20

30

25

10

16

18.

I want to see the output with red color those are less then 20.

In the out put with above value have red color in row number 1, 5, 6 ,7 row.

If it possible , help me with code

Rayhan

5 REPLIES 5

0 Kudos

Hi Rayhan,

you'll need no special code. Within the loop you'll have to create 2 text fields. One has the condition your_field GE 20 with no special color definition. The other text field has condition your_field LT 20 and in output options you'll have to choose the color red.

Regards

Nicola

0 Kudos

Hi Nicola,

Thank you for your quick replay.

But I have some problem.

Box/Shading are not allowed in table.

So How can I use color in the text ?

Thanks & regards

Rayhan

0 Kudos

If you use a table you will have to work with a style. The condition stays as mentioned and if the value is lower than 20, you use the style with color red.

Regards

Nicola

0 Kudos

Thanks Nicola..

Thanks a lot.........

I can Change Font color only.

If it possible to change BG color help me later.

Regard

Rayhan

Former Member
0 Kudos

Answer