Hi all,
I have a web dynpro application with a tab strip with 9 tabs. Each tab has an ALV embedded in it. Each ALV is mapped to the same node in component controller. When the application is executed 'Select ALL' works for first ALV on the first tab. However if i select a different tab i get the select all option on the left hand corner but it does nothing when chosen.
I also tried creating custom button on ALV toolbar for this functinality. Here i am looping over all elements of the node (bound to ALV) and using method set_selected( abap_true ) ( method of if_wd_context_element ). This also works for first ALV on the
first tab. However again get the same issue if i choose any other tab.
Node cardinality : 0.... n
Node selection : 0.....n
ALV selection mode set to MULTI using method SET_SELECTION_MODE( CL_WD_TABLE=>E_SELECTION_MODE-MULTI ) of cofig class cl_salv_wd_config_table.
All your inputs/suggestions to resolve this issue will be greatly appreciated.
Thanks,
Vivek Priyadarshi
Hi vivek,
Are you sure that you are using the same context node in both cases?
I created two tabs embedded 2 ALV's(you have to define SALV_WD_ALV component twice as a used component..in your case 9) and bound them to the same context node in component controller to the ALV's.
I do a 'select all' in tab 1, all rows are selected, change the tab, I find all rows selected in the second tab also.
I do a 'deselect all' in tab2 and this results in deselecting all rows in both tab1 and tab2.
What do you mean by 'select all does nothing when choosen'?..Do you mean to say that , on clicking select all in tab 2, nothing happens?..I would guess nothing happens because , all elements(rows) are already selected in tab1 itself .since the node in question is same , nothng happens...Try doing a deselect all in tab 2 and check if 'somthing happens'..:)
Please let us know more about the behaviour.
Thanks,
Aditya.
Resolved.
I was invalidating node common to all ALV each time i was jumping to a new tab as i had to load new data for new tab. Now i have a different node attached to each ALV ( 9 in all ). It works this way.
Thanks,
Vivek
Add a comment