cancel
Showing results for 
Search instead for 
Did you mean: 

PDV table configuration using iViews

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

stephan_trzonnek
Explorer
0 Kudos

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);

Former Member
0 Kudos

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

Answers (0)