cancel
Showing results for 
Search instead for 
Did you mean: 

Row Repeater

Former Member
0 Kudos

I am using Row repeater and displaying 100 rows of data using Link to Action .

My problem is if i click one of the Linkto Action Button I need to fetch the particular record that i clicked , And in click event for the link to action i read the context its giving the first value of the node.

Then how to get the particaular record is selected in the Rowrepeater

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this,

Data lr_event type ref to if_wd_context_element.
 
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
 
lr_event->get_static_attributes(
IMPORTING
Static_attributes = ls_value ).

Regards,

Padmam.

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

In link to action method ,declare a parameter context_element as importing parameter with reference to if_wd_context_element.

data: ls_value type (node structure for which the table is bound).

context_element->get_static_attributes(

IMPORTING

Static_attributes = ls_value ).

Former Member
0 Kudos

Hi Vikranth,

I am having two text views in a row.

I have to display multiple rows which r similar to above row ( Dynamically based on data available ). Using row repeater or multipane how can we do that .

Thanks in advance

Former Member
0 Kudos

Thanks for the Suggestions

Former Member
0 Kudos

Hi

when you click on the link to action, the event handle method has one importing parameter row index. you can use this index to read the context element at that index.

Regards

Saurabh Garg

Former Member
0 Kudos

hi,

use the follwing code

element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).

w_index = element->get_index( ).

by knowing the index u can come to know which row is selected.

Regards,

janakiram.