on 10-10-2008 8:42 AM
Hi all,
I set onSelect event to update another Dropdownlist. But how which one is selected. Then, i would fetch the data from transparent table by using the selected value.
Thanks in advance,
Peerasit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peerasit,
First use the get_lead_selection_index( ) method to get the index of the value that you had selected in the dropdown. So you can then read the table with which you are filling the dropdown using this index value. Next use the value read in your select clause to get the relevant data. Find a sample code snippet as shown below. Hope that this helps.
Regards,
Uday
data : lead_selection_index type i,
lv_node type ref to if_wd_context_node,
lt_sflight type standard table of sflight.
lv_node = wd_context->get_child_node( name = 'NODE1' ).
lead_selection_index = lv_node->get_lead_selection_index( ).
READ TABLE lt_application INTO wa_application INDEX lead_selection_index.
select * from SFLIGHT into table lt_sflight where carrid = wa_application-carrid.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.