Skip to Content

Formatting Cells in a Table

I am writing a custom iview that will return information in tabular form from a R/3 Function Module.

Does any one know how:

1. To format number such that there is a comma after each hundred? I am getting back 1500.50, I want it to display as 1,500.50.

2. When text columns are displayed, they are wrapped. How can I make them not wrap.

Can I define the attributes of a table?

Here is the code I use to display the columns of my table:

colCount = 7;

AbstractDataType headerTable[] = new AbstractDataType[colCount];

headerTable[0] = new DataString(_res.getString("<b>Begin Date</b>"));

headerTable[1] = new DataString(_res.getString("<b>End Date</b>"));

headerTable[2] = new DataString(_res.getString("<b>Wages</b>"));

headerTable[3] = new DataString(_res.getString("<b>Amount of Increase</b>"));

headerTable[4] = new DataString(_res.getString("<b>Currency</b>"));

headerTable[5] = new DataString(_res.getString("<b>Annual Salary</b>"));

headerTable[6] = new DataString(_res.getString("<b>Reason</b>"));



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2004 at 08:13 AM

    1. Have a look at the class java.textNumberFormat

    2. Not sure

    Add comment
    10|10000 characters needed characters exceeded