cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro themes

Former Member
0 Kudos

Hello All,

We are trying to display a report in the portal. The report has items which have to color coded based on their status.For example if a task has to be performed immideatly it has to show in red and if not green and some other colors. Is is possible to develop a web dynpro table using custom themes or otherwise to set the color of different columns based on their status.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Vijay,

Using themes we can change the look & feel of a UI element. But then this change will be reflected wherever you have used this UI element. So using themes won't solve your problem.

A suggestion is to use TextView as the table cell editor ( the default one). Create an attribute of type 'TextViewSemanticColor' (local dictionary ->com.sap.ide.webdynpro.uielementdefinitions -> TextViewSemanticColor) inside your table node and bind the 'Semantic color' property of the TextView UI element to this attribute. Then inside your code, depending on the condition you can set different semantic color for the textview ( from the list of available ones).

For eg:

wdContext.node<your table node>().get<table node>ElementAt(row index).set<color attribute>(WDTextViewSemanticColor.POSITIVE);

would set the text's color as green at the specified row.

wdContext.node<your table node>().get<table node>ElementAt(row index).set<color attribute>(WDTextViewSemanticColor.NEGATIVE);

would set the text's color as red at the specified row.

Hope this helps you,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Vijay,

Insted of this approach, you can show status image in one of the column of your table as status. This status image includes one of the the colors RED YELLOW or GREEN.

Based upon the status you can set image source to display in table.

Regards,

Bhavik