cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in reading the row values in table display format.

Former Member
0 Kudos

Hi All

I created UI asTable display format using three columns( name, email and resume ).

In this Resume column type is Link to Action. This entire column contains text as Resume - this element type is Link to action.

When click on Resume that respective row values I have to capture.

I have used following code, but It is capturing based on lead selection. ( On the UI, lead selection row is different and clicking on Resume row is different ).

DATA lo_nd_email TYPE REF TO if_wd_context_node.

DATA lo_el_email TYPE REF TO if_wd_context_element.

DATA ls_email TYPE wd_this->element_email.

DATA lv_email_ref LIKE ls_email-email_ref.

  • navigate from <CONTEXT> to <EMAIL> via lead selection

lo_nd_email = wd_context->get_child_node( name = wd_this->wdctx_email ).

  • get element via lead selection

lo_el_email = lo_nd_email->get_element( ).

lo_el_dashboard_1->get_attribute(

EXPORTING

name = `NAEM`

IMPORTING

value = lv_name ).

Please help me on this ..thanks in advance....

Accepted Solutions (0)

Answers (2)

Answers (2)

Madhu2004
Active Contributor
0 Kudos

Hi,

Just declare a variable in the parameters of the method,which u declare for the cell action.

CONTEXT_ELEMENT type ref to CONTEXT_ELEMENT as importing paramter

code:

context_element->get_static_attributes(

IMPORTING

static_attributes = stru_sflight ).

this will surely solve ur problem

regards,

Madhu

Former Member
0 Kudos

Hi rama krishna ,

on the click of your link to action you have to find out the index of the row in the table fromm which the click happends and based on the index you have to read value from itab.

just by reading the node will only return you the value of lead selected record

Regards

Sarath

Former Member
0 Kudos

Hi Sarath,

Can you please provide me the sample code to read index.

Thank you very much for your help.

Regards

Rama.