cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Java - Coloring table rows

Former Member
0 Kudos

Hi,

Can some one help me with this one ? I need to color each row with different color based on some condition. The earlier thread is not very clear to me. "ShoppingBasket" is the name of my table with "Quantity", "Article" and "Color" fields. Also I need to know how to color each cell.

for(int i=0;i < wdContext.nodeProducts().size();i++)

{

IWDTextView txtView = (IWDTextView) view.getElement("ShoppingBasket");

???????

}

Thanks

Abdulla

Accepted Solutions (0)

Answers (2)

Answers (2)

p330068
Active Contributor
0 Kudos

Hi Altera,

Please refer to this blog may help on your requirement:

[Colourful Table in Web Dynpro|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3548] [original link is broken] [original link is broken] [original link is broken];

Hope it helps

Regards

Arun

former_member214651
Active Contributor
0 Kudos

Hi,

U need to the TableCellDesign property for acheiving this. U need to bind the textview UI element's cellDesign property to a context attribute which is of type tablecellDesign (found in Simple types)

For reference please go through this this thread:

Regards,

Poojith MV