on 11-04-2009 10:20 AM
I have a simple test application. A context node is defined as 0...1 and I have bound it with a table and an ALV (SALV_WD_TABLE).
In WDDOINIT of COMPONENTCONTROLLE I fill the context and set the leadselection (node->set_lead_selection( index = 1 ).
The simple table mark the row as the selected (yellow), but the row of ALV don't marked.
How I can set the lead_selection at ALV?
hi,
Try with method set_lead_selection_index :
node->set_lead_selection_index( index = 3 ).
And change the cardinality of node binded to table/Alv with 0..n or 1..n
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I test:
node->set_lead_selection_index( index = 3 )
and
lo_value->if_salv_wd_table_settings~set_selection_mode( value = cl_wd_table=>e_selection_mode-SINGLE ).
but it doesn't work. The row in ALV doesn't marked.
INITILAIZE LEAD SELECTION set the first. But I like that an other row.
Who has an other idea.
Best Regards
Maik sturm
Hi,
Initialize lead selection for that node should be checked,
and for that node you can set the lead selection index as 3 (if you have 3 or more rows in the ALV)...
then the selection mode is set to SINGLE.
have you changed the cardinality or not....
Don't you want to have the 1row as selected by default....
If you have the MAPPING then use the UPDATE mapping and test it again...
Regards,
Lekha.
Edited by: Lekha on Nov 4, 2009 5:27 PM
Hi,
You need do any settings for ALV table.
Does the ALV table contain an entries.
If it has entries the lead selection will come automatically..
Regards,
Chaitanya Priya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For that Node to which ALV is bound is the INTILIZATIONLEADSELCTION is checked or not.
check the if_salv_wd_table_settings~set_selection_mode method to set the lead selection
DATA: lo_value type ref to cl_salv_wd_config_table.
CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
EXPORTING
value = cl_wd_table=>e_selection_mode-SINGLE.
Cardinality should be set to 0:N or 1:N for TABLE entries otherwise only one row gets displayed.
Regards,
Lekha.
Edited by: Lekha on Nov 4, 2009 4:32 PM
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.