on 11-16-2004 9:17 AM
Hi,
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
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.