cancel
Showing results for 
Search instead for 
Did you mean: 

DOUBLE CLICK ON TABLE

Former Member
0 Kudos

Hi All,

I have one question with Table.. I have a table with some records, when user double click on perticular record, that record should be in edit mode. and user can change and should be updated at backend . how can we acieve this? any helps

Tahnks in advance,

venkat.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1151507
Participant
0 Kudos

Hi Venkat,

Bind the InputField Enabled property with an attribute say PFLAG. In the Table properties, you can find OnLeadSelect event. In this event, get the selected row and set the PFLAG value accordingly.

Regards,

Manogna

Former Member
0 Kudos

Hi Manogna,

Thanks for your reply. can you give me some coding regarding this.

Thanks,

venkat

former_member1151507
Participant
0 Kudos

Hi Venkat,

Bind the Enabled property of InputfFeld with an attribute of wdy_boolean (eg: PFLAG). Create an action for OnLeadSelect of table and write the following code.

DATA lo_nd_table_node TYPE REF TO if_wd_context_node.

DATA lo_el_table_node TYPE REF TO if_wd_context_element.

lo_nd_table_node = wd_context->get_child_node( name = wd_this->wdctx_table_node ).

lo_el_table_node = lo_nd_table_node->get_element( ).

lo_el_table_node->set_attribute(

EXPORTING

name = 'PFLAG'

value = 'X' ).

Edited by: manogna musunuri on Sep 14, 2010 7:33 AM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Double click is rarely used in the browser in general (not just Web Dynpro). There is no double click event in Web Dynpro. Generally you would just use the leadSelection for such a user interface activity.