Skip to Content

Dynamic binding of input field to make it read only webdynpro

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 02 at 05:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded