on 11-30-2009 8:46 AM
Hi, is there a way to clear the dropdown selection without refreshing the table?
I currently have a Create New Form page. If I click on BACK and then go into a new Create New Form page, the selection in the dropdown box should be cleared, but table (dropdown list) retained.
I populated the dropdown in WDDOINIT method, hence when I return to the Create New Form page the 2nd time, WDDOINIT does not get called, hence if I invalidate my dropdown, it will always be empty from then onwards.
I tried to SET_ATTRIBUTE to '' but it somehow refreshes the whole dropdown list to empty instead of just the selection.
hi
use set_lead_selection for the same
1 append initial line to ur internal table
APPEND INITIAL LINE TO itab.
// itab is the internal table which is binded to the drop down
2 now set the lead selection to 1
DATA : lo_nd_cn_sapsystem TYPE REF TO if_wd_context_node ,
lo_el_cn_sapsystem TYPE REF TO if_wd_context_element ,
ls_cn_sapsystem TYPE wd_this->element_cn_sapsystem.
* navigate from <CONTEXT> to <CN_ROLELEVEL> via lead selection
lo_nd_cn_sapsystem = wd_context->get_child_node(
name = wd_this->wdctx_cn_sapsystem ).
lo_nd_cn_sapsystem->set_lead_selection_index( 1 ).
I hope it shud help
rgds,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
a simple solution is, to call the CLEAR_SELECTION method on the node that holds the data for your dropdown box.
Regards,
Helmut
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.