on 07-31-2010 9:12 AM
Hi all,
I want to display text as well as image in a table column. That means, I want to have a image followed by a text in a column of the table.
Can anyone help in how can I proceed with the same. I mean what would be the cell editor and context type.
Many thanks in advance.
Thanks and Regards,
Shilpa Dhawan.
The LinkToAction is a good solution, but you might be interested that in the future (7.02) there is also a multiple cell editor type. This allows you to mix in multiple cell editors of different types into the same table column.
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
THANKS EVERY ONE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI shilpa_g_dhawan
insert link to action UI in the table coloum
create a attribute with type sring and bind that to the link to action image source property
refer the sample code for displaying the image in table coloumn cell editor .
LOOP AT lt_scarr INTO wa_scarr ."WHERE currcode = cky .
IF wa_scarr-currcode = cky .
wa_scarr-url = 'Display' .
wa_scarr-img = '~Icon/GreenLed'. " inserting image
wa_scarr-cell_design = cl_wd_table_column=>e_cell_design-negative.
ELSE.
wa_scarr-url = 'Edit' .
wa_scarr-cell_design = cl_wd_table_column=>e_cell_design-positive.
wa_scarr-img = '~Icon/GreenLed'. " inserting image
ENDIF.
MODIFY lt_scarr FROM wa_scarr TRANSPORTING URL cell_design img .
ENDLOOP.
lt_node-> bind_table (lt_scarr).
look at this pic too .
http://i27.tinypic.com/2iqzqtj.jpg
regards
chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can use LinkToAction as the cell editor for the table column where you want to display an image followed by text.
Set the "imageSource" property and "text" property of LinkToAction as required. and its possible to display LinkToAction in different ways like with underline, without underline by using the property "type".
Please refer to the following link for more details about the UI element LinkToAction:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0f/e8884118aa1709e10000000a155106/content.htm
Hope this helps!
Regards,
Srilatha
Edited by: Srilatha M on Aug 2, 2010 9:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.