cancel
Showing results for 
Search instead for 
Did you mean: 

Check box in standard table

Former Member
0 Kudos

Hi ,

I have a standard table with checkboxes in one of the columns.

When i click on the check box i want to know which row has been selected.

Can any one suggest a way to do this.

Thanks ,

Radhika...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi radhika,

I checked it again it is returning row index.

have u binded the checked property of the checkbox with node attribute that u binded to the table.

Regards,

janakiram.

Former Member
0 Kudos

Hi Janakiram

yes i have binded the checked property with node attribute.

this is wht u said ,

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

lv_index = elem->get_index( ).

So What do u want me to pass in the get_context_element method ? The attribute is it ??

Radhika.

Former Member
0 Kudos

Hey Sorry ..

Its working ..

Thank you Janakiram..

Radhika.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

check box will have an event toogle for that create action.In the Action method write follwing code

u can get the index.

elem TYPE REF TO if_wd_context_element,

lv_index TYPE i.

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

lv_index = elem->get_index( ).

Regards,

janakiram.

Former Member
0 Kudos

No im not getting the index .

Actually the attribute that im binding to the checkbox is in one of the nodes in the Context.