cancel
Showing results for 
Search instead for 
Did you mean: 

changing the table cell color

Former Member
0 Kudos

hi

i have two tables in my main window ,

where i will be selecting one of the row from each table

and click on button called MATCH , there will be a match

done in backend for the selection of the two table rows

and show a table in the pop-up window with the matched data ,, now i need some of the cells in the

matched data row for the table in the pop-upwindow to be changed , there is variable set called 'X' which i need to set

fields that have to changed with color

can any one help me out with this issue

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

closed

Former Member
0 Kudos

Hi,

U need to create a context attribute say cell_design of type

com.sap.ide.webdynpro.uielementdefinitions.TableCellDesign.

Go to the desired table column properties for which u need to

change the color bind cellDesign property with cell_design.

Apply to all column if u need to change the color of whole row.

Now u can set this cell_design with any color using


wdContext.currentcontextelement.setCell_design(WDTableCellDesign.COLOR_OF_YOUR_CHOICE);

Regards

Surender Dahiya

Former Member
0 Kudos

hi

thanks for the response ,

but the color i need to change is to be done in

pop-upwindow table , and for the table structure

It_Calc_Car which has elements overwidth,weight

there are some flag values called flagoverwidth,flagweight

which are of type String .

now i need to check the condition if this flag elements=="X"

then chnage the color else no chnage of color

any suggestions .