cancel
Showing results for 
Search instead for 
Did you mean: 

Add Button in Table.....

Former Member
0 Kudos

Hi Guys,

My requirement is: In a table control, 2 fields are coming from one node and third field is button. If i'm clicking on this button, the relevant field values are coming from the another database table (Here it may be more than 1). Can anyone has any idea about it? Is it possible to display all these fields in same table control which actually fatches data from 2 database tables?

Thanks,

Ravin Joshi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for support, i got the answer....

Former Member
0 Kudos

hi joshi,

first get the index of the row where the button is clicked.

don't for get to create action for the button.

write following code in the action:

data: elem_week_data TYPE REF TO if_wd_context_element.

w_index type i.

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

w_index = elem_week_data->get_index( ).

Then get the data of two fields and bind it to the node.

Regards,

janakiram.

Former Member
0 Kudos

hi ravin....

create a global structure for the table control....

create an internal table for the table control......

create a node with respect to the structure and bind it to the table control.

in teh on acton method... load values into this internal table and bind it to the node.

---regards,

alex b justin

Former Member
0 Kudos

Thanks alax as i know it, but my prob is: Based on selection of field1-value and field2-value, the remaining fields should come in same table (which may any no.)except the field3 as it's a button (having click). Kindly highlight me if any info...