cancel
Showing results for 
Search instead for 
Did you mean: 

Setting readonly property for several fields at runtime

Phillip_Morgan
Contributor
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

     Hi Friend,

   

     Refer to following link

    

     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.

Phillip_Morgan
Contributor
0 Kudos

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!

Answers (0)