Skip to Content
0

Dynamic binding of input field to make it read only webdynpro

Mar 02 at 08:00 AM

21

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Amy King Apr 02 at 05:59 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded