on 02-18-2008 10:32 AM
Hi ,
I am having a problem while selecting a row in a table/ALV.
I am displaying data in a table which is NOT set to 'Initialize lead selection' in the context.When it is displayed and I try to select a row the row does not get selected(highlighted) in the view.
However,I am able to perform tasks on 'Onselect' event on the rows.Just that its not getting highlighted neither in table nor in ALV.
What could be the reason for this ? I do not want the context element to be set as 'Initialize lead selection' as that would highlight the first line of the table when the view is rendered first time.
Thanks for your help,
Sandip.
Hi,
try this code for setting the ALV rows selectable:
data: l_value type ref to cl_salv_wd_config_table,
l_ref_interfacecontroller type ref to iwci_salv_wd_table.
l_ref_interfacecontroller = wd_this->wd_cpifc_yourcontextnode( ).
l_value = l_ref_interfacecontroller->get_model( ).
call method l_value->if_salv_wd_table_settings~set_row_selectable
exporting
value = abap_true.
Best Regards
Ingmar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sandip,
Try this method
lo_table_sett TYPE REF TO if_salv_wd_table_settings.
lo_config_tab TYPE REF TO cl_salv_wd_config_table.
lo_config_tab = lo_ref_interface_controller->get_model( ).
lo_table_sett ?= lo_config_tab.
lo_table_sett ->SET_SELECTION_MODE( value ).
value- '00' for auto
'02' for single
'04' for multi
'06' for none
'07' for singleNolead
'08' for multi Nolead
Regards,
janakiram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sandip,
set selection property of the node to 0 to n and check..
if u still face the problem let me know
Regards,
janakiram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.