Table view cell coloring using webdynpro
I have a requirement in the table view(not alv) where in i need to color the particular table cell fied based when the field is empty.
let me tell you with an example.
Airline flightnumber Currency price
SQ 0400 dem
HQ usd 100
SD 3577 12
The above table is what my output where i need to have colors for the blank fields.
* in the first row i need to have color design for price field
* in the second row i need to have color design for flight number field.
* in the third row i need to have color design for currency field.
* in the 4th row i need to have color design for currency & price field
can some one please help me out.
Thanks in Advance.
From your example I can see that you have only one attribute COLOR, which is bound to the both the columns Flight number & Airfare.
Instead, have two variables and bind these to these 2 columns respectively. And in coding assign the corresponding color.
Hope from the below piece of code, you may understand what needs to be done.
IF wa-price = '6000'.
wa-fare_color = 01.
IF wa-connid = '0454'.
wa-flight_color = 02.