on 10-23-2007 3:02 PM
Hi experts,
I have created a table in a view within web dynpro component.
I have a requirement to get data from the row selected in the table.
After selecting the row ,the user is required to press a button . I want the data on that button press.
How can I do that , please explain it i detail . If possible send me the
code that will be required.
thanks,
Sushant
Hi Sushant,
Simply use the code wizard and choose the option 'Read context node/attribute'. Using F4 help, select the context node that is bound the table and click OK. Now the code for this will be generated. You will be fetching a reference of the node, and a reference of the selected element using the method node->get_element( ). This will return you the lead selection element. Then the get_static_attributes method will return you the data in the particular row. Do this inside the event handler that you have defined for the button.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in your action handler just set:
node->get_selected_element( ).
this will return the selected element (line)
element->get_static_attributes()
will return a structure with the values
grtz,
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.