on 05-12-2010 7:10 AM
Hi All,
In my ALV there is one field which is displayed as icon.On clicking the icon a popup should be displayed.My Issue is this is an Heirarchial ALV where header and item should be displayed. i want this icon to be displayed only at item level.
I used the below code .But the icon is displayed in both heaer and column.I tried Set Visible property of link_to_action
DATA: lr_column TYPE REF TO cl_salv_wd_column.
lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).
DATA: lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action.
CREATE OBJECT lr_link_to_action.
lr_link_to_action->set_text_fieldname( 'DETAIL' ).
lr_link_to_action->set_image_source( 'ICON_DISPLAY' )
lr_column->set_cell_editor( lr_link_to_action ).
Kindly let me know the solution.
Thanks,
Bindu.
Hello,
have you tried explicitly assigning a header and text to the column?
data: lr_header type ref to CL_SALV_WD_COLUMN_HEADER.
lr_header = lr_column->create_header( ).
lr_header->set_text( 'my header text' ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bindu,
Have a look on this [Wiki Document|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-UsingUIelementsinALVcomponentcells].
Hope it will help you to get the desired requirement.
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.