Skip to Content
author's profile photo Former Member
Former Member

PDV table configuration using iViews


I'm having trouble specifying the horizonal alignment (left, center, right) of a PDV table column. Using SAP EP 6.4 and PDK 60.3.0, my PDVJspDynPage uses the afterTableViewCreate()-method for specifying the names of the table columns along with column keys and tooltips.

However, specifying horizontal alignment does not work; only the header field of the column is affected.

I use the following statement:

table.setColumnHAlignment( table.getColumn( "colName" ).getIndex(), CellHAlign.RIGHT );

Other alternatives have been tried out, including the setCellHAlignment()-method on specific column rows and the setTableHAlignment()-method on the entire table. None of these alternatives worked.

Any suggestions?

Thanks in advance,

Rasmus Ørtoft

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 02, 2004 at 11:40 AM

    Hi Rasmus

    I've got the same problem with the Table alignment!

    I have a workaround for cells.

    table.getColumn("colname").setCellHAlignment(-1, CellHAlign.RIGHT);

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Stephan,

      Thanks a million, this works like a charm!!!

      Furthermore, it seems as if SP9 fixes many of the faulty table alignment statements. The statement

      table.setColumnHAlignment( tabel.getColumn("colName").getIndex(), CellHAlign.RIGHT );

      also works as well which was not the case previously (read: SP7).

      Message was edited by: Rasmus Ørtoft

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.