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);
Add a comment