Skip to Content

Setting readonly property for several fields at runtime

Hi all,

I have a first screen with an ID number field.

I have a second screen with several fields with contact information (name, lastname, telephone...).

I want to access this second screen either in display or change mode.

I did my research (help, SDN) and have set up as follows:

- a context attribute isReadOnly type WDY_BOOLEAN

- first screen, button display: in the code I set isReadOnly true

- I bound all the input fields in second screen to isReadOnly (actually to their Read Only property)

I understood that thanks to the binding, the fields should be automatically greyed out.

I see in debug that the context attribute is correctly set to true.

Always in debug, the readonly property of the field is "Value not determined"

What am I missing?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 31, 2015 at 10:30 AM

         Hi Friend,

       

         Refer to following link

         How to create and use Table Multi Editor Cell in Web Dynpro ABAP

         and focus on below screenshot part and corresponding coding in that document

       

         you will definitely meet success

        

         whatever is done with Table cell in below document , you have to perform with your input boxes.


    Capture.JPG (53.3 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Thank you For the information.

      I really thought that I could bind one attribute to many input fields but just would not work.

      So I have one attribute isReadOnly, and I test it in WDDOINIT of second screen.

      If true I set the read only property of every field separately.

      It works even though I am unhappy. Don't see why the other way did not work...

      Thank you!