cancel
Showing results for 
Search instead for 
Did you mean: 

accessing data from tables within web dynpro form

sushant_singh
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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