cancel
Showing results for 
Search instead for 
Did you mean: 

Row selection in Table (Web Dynpro Abap)

Former Member
0 Kudos

Hello,

I have 2 views in my web dynpro component.

In first view , i am taking carrid and on click of submit button , i am displaying connid,fldate,currency,planetype,seatsmax in second view.

I have one button on second view to go back to fist screen.

Now, My question is :

if i select a one row of table , i want to dispaly deatils of that row in first view.

How can i do this?

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

I am not sure as to in which view you have your table.

To get details of the selected row of table , use onLeadSelect event of the table UI element.

In the handler , get the lead selected element using get_lead_selection( ) method.

then use the method get_static_attributes() on the lead selected element to get all details of the selected row and display it wherever you want it.

Thanks,

aditya.

Former Member
0 Kudos

Hi Aditya,

I am able todisplay the details of selcted row in my first view.

Thank you.

~ Anuja

Answers (1)

Answers (1)

Sharathmg
Active Contributor
0 Kudos

The second part of the requirement is not clear on where woudl you click and where shoudl the data be shown.

However, all this data should be ideally maintained in the component controller i.e. the c.controller should have the conterxts and map relevant nodes to the appropriate views.

Now, all the data is in c.controller which can be accessed from any view within the component. This way you can show any data in contexts in preferred view.

Regards,

Sharath

Former Member
0 Kudos

Hello,

If i select a row and then i click on one button, say 'Show details'

then i wnat to diaplay the details on first view

~ Anuja