on 08-04-2008 7:14 AM
hi
i m new in WD ABAP. i have 10 values in drop Down by Key. and i want to display a particular value which is selected. tell how to proceed for that.
just use the code wizard and read the context attribute value
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Say you have those 10 values in a table lt_values.
Now bind the table to the node using bind_table( ) method in the supply function.
Bind the key attribute to the dropdown.
Regards,
Shalini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pankaj ,
I think abhi has given you the solution and if u didnt understand it i,ll just breif it..
You have 10 values in your dropdown list and now u want that if u select some value it should get display some where(can be a label , inputfield or textview etc ) correct me if i am assuming wrong.
I ll tell you the process :
step 1: get the data selected in dropdown by using get attribute(by code wizard)
step 2:set the data to the attribute which has been linked with the element where u want to display the data , by using set attribute.
And i think the required code u can write easily.
Now also if you have any quiery feel free to ask
regards
Panky
Use the code wizard, anyways
data: lr_node type ref to if_wd_context_node.
data: lr_element type ref to if_wd_context_element.
data: lv_value type <attribute type>
lr_node = wd_context->get_child_node( '<name of the node where your attribute binded to dropdown>' ).
lr_element = lr_node->get_lead_selection( ).
lr_element->get_attribute( exporting name = '<name of the attribute>'
importing value = lv_value ).
you will get the value into
Abhi
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.