cancel
Showing results for 
Search instead for 
Did you mean: 

Images in some Column-Heads are not visible

Former Member
0 Kudos

Hi there,

in an Webdynpro-Application I am using tables that are sorted in that way that is discribed in the Tables-Tutorial (with TableSort-Class). Everything works fine except that initially there is no image in the column-head although I set one in the layout-designer. After sorting the apropriate images appear.

I tried to set the image-source again, I tried to set the image in the source like:

<i>IWDTable table = (IWDTable)view. ...

table.getColumns()[...].getHeader().setImageSource("...");</i>

... doesn't work.

Are there solutions? Thanks!<i></i>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Your code is right. but i think you have placed the setImageSource code before the call of Table Sorter class.

if you put that code after the object creation of TableSorter class, it will work.

regards

Karthik

Answers (2)

Answers (2)

Former Member
0 Kudos

The image is reseted in the TableSorter-Class.

Former Member
0 Kudos

Your code seems alright..

are u getting any errors???

or wht type of images u r trying to display??

i think dynpro doesnt support some types./check with other types...

Former Member
0 Kudos

There are no errors. The images are the standard-SAP-images like "~sapicons/s_abcana.gif". They work fine on some buttons in teh same application. Furthermore the TableSorter-Class works with the same images, so these should work ...

Former Member
0 Kudos

Inside the TableSorter-Class the image-source is reseted, so it is possible to set the image after binding the instance of the TableSorter to the context or to fix the Table-Sorter-Class