cancel
Showing results for 
Search instead for 
Did you mean: 

How to make last row in the table in Bold font

Former Member
0 Kudos

Hi,

I'm using NW 2004s - webdynpro for Java. I have a simple table where the data comes from backend. Now this data has all totals which comes as the last row.

Now I need to show the last row completely in bold font as the rest in normal font.

Any suggestions or help is greatly appreciated.

Regards,

Shiva Kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

A "solution" that also works in NW04 is:

Assuming you have TextView cell editors, bind the "design" property of all editors to a calculated context attribute "EditorDesign" of type com.sap.ide.webdynpro.uielementdefinitions.TextViewDesign, readOnly=true, inside the table data source node "Rows".

Implement the getter like

WDTextViewDesign getRowsEditorDesign(IRowsElement element)
{
  return element.index() == element.node().size() - 1
    ? WDTextViewDesign.EMPHASIZED
    : WDTextViewDesign.STANDARD;
}

Armin

Former Member
0 Kudos

Hi Armin,

Thanks a lot. Its works perfectly.

Regards,

Shiva

venkatakalyan_karanam
Active Contributor
0 Kudos

Hi

I have created a Totals table dynamically .It has only 4 rows but I want to make the last Row data should be BOLD.

I have created a CellDesign with type TextViewDesign and set calculated to true.

And implemented what Armin suggested.But still I am not getting all the rows in Bold

Please help me how I can do this

REGARDS

KALYAN

Answers (1)

Answers (1)

Former Member
0 Kudos

Shiva,

1. Right-click on Table in outline, select "Insert GroupedColumn", choose "TableColumn"

2. Right-click on column added, select "Insert FixedBottomCell", chooes "TableSummaryCell"

3. Repeat for all columns necessary.

VS