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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.