cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic binding of input field to make it read only webdynpro

aarif_baig
Active Participant
0 Kudos

Hello gurus,

I have been working on an issue where i have to modify standard Physical inventory web dynpro, i am stuck at point where i need to grey out an input field based on some screen selection, the first challenge is to bind readOnly property dynamically, i also want to add an element or node to the context dynamically through code which i can bind with the input field and change the value of this new element based on the required logic.

I have searched on SDN and have tried them all but nothing works for me because i am missing out something, if anyone has worked on similar issues and knows a solution please help.

p.s. cannot bind the readOnly property for the input field as the option is greyed out and no enhancement point is available.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

Hi Aarif,

You cannot change the properties of a standard UI element, but in enhancement mode you can right-click and remove that UI element and replace it with a custom one which you control fully. Just replicate all of the removed element's bindings and then bind its enabled property to a custom context element to control whether it is read-only.

Cheers,

Amy