on 05-08-2007 3:13 AM
Hi all,
I use this code:
table_node->set_lead_selection_index( index = lv_counter ).
to set needed row to selected. It works fine with no problems with regular ALV settings.
However, when I use hierarchichal table:
lr_table_settings->set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy ).
lead selection stops working. Is there a special way to handle this?
Thanks,
Georgy
Hi Georgy,
Lead selection works the same way for a hierarchical ALV as it works for the normal ALV display, the only difference is that Lead Selection Index works on the lower level nodes only and not on the parent nodes in the hierarchy column. What I mean is: Suppose you have 4 nodes in your hierarchy column(top level nodes) and each of these has 4 sub rows in them, now if you set the lead selection to 5, the fifth row among the lower level rows will be selected. I checked this and it works fine in my case. Below is a sample code I use:
l_value->if_salv_wd_table_settings~set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy ).
lv_index = 5.
CALL METHOD lo_node_data->set_lead_selection_index
EXPORTING
index = lv_index.
I hope this helps you.
Thanks and Best Regards,
Viqar Ali.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Georgy,
Hierarchy is one type of setting in WD ABAP not like in normal ALV. I think there is no way to set the lead selection index in the case of Hiearchy, why becuase you can able to select only the leaf nodes only not all the nodes in the hiearachy. For the leaf nodes you can make the lead selected node. Just try to access the leaf node and find out that how you are accesing depending on that you can set the leaf node as selected.
I hope i make you clear.
Warm Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Georgy,
1. This is link to ALV tutorial, ALV Demo
There are some standard examples also,
2.Please refer to Package called as SALV_WD_DEMO .In this you will get ample of sample examples about ALV .
3. Please search in SDN library you will ALV in WD ABAP you will get many pdfs avilable that will guide you to develope ALV application in WD ABAP.
Hope this will help you.
Cheers
Darshna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.