cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic property change for table

Former Member
0 Kudos

Hi ,

i am new to Webdynpro ,

my requirement is to enable the table row for editing when the Lead is clicked .

i refred this below mentioned thread . but i dont know which class / interface must be used for dynamic change of the table properties .provide me a sample code , and how to find the approp class or interface the changing the UI properties dynamic

thanks & regards

chinnaiya P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First of all you have to use your table cell editor as Input field for columns which you want to be editable

You just have to bind the read only property of your Input Field Cell Editor to a new attribute ( lets say read_only of type wdy_boolean ) contained inside the same node which is bound to table.

Now on lead select of your table - an event will be triggered - just read the lead selected element - change the reaD_only attribute property to abap_false and bind the attribute back with new value.

You dont have to do any dynamic prog, playing around with context attribute will lead to the desired result.

If you want to know how to change the cell editor from default text view to input field - follow Vikrant's reply in this thread

Regards

Manas Dua

Edited by: Manas Dua on Mar 17, 2010 1:40 PM