cancel
Showing results for 
Search instead for 
Did you mean: 

Control enabled flag on UI elements in a table at runtime

derekvincent
Participant
0 Kudos

Hello,

I am writing a WebDynpro application with a table and in the table one of the columns contain DropDownbyKey element. The rows are being pulled from a web service an I would like allow the user to enter a new row and select a value from the drop down on that row. *But* I want to keep the value pulled back from the webservice to remain disabled for viewing only.

I know how to use the wdModifyView and set the enabled flag on the DropDownByKey element in table but I would like to do it a on row by row basis.

any ideas?

Derek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Don't use access to UI element references to do that. Instead, add a boolean context attribute under the data source node, bind the "enabled" property of the drop-down list to that attribute. To enable/disable the editor in row at index i, set the attribute value to true/false in node element at index i.

Armin

Answers (1)

Answers (1)

derekvincent
Participant
0 Kudos

Always looking for the hard way... The context element makes the solution much cleaner...

thanks.