cancel
Showing results for 
Search instead for 
Did you mean: 

making the input fields readonly

Former Member
0 Kudos

hi

iam calling a RFC and it is a Custom and not

a pre-defined

and now i need to show some data of the table

in the pop-up window in the input fields and all this

fields should be readonly . there are about 30

input fields and it difficult to make each and every input

field as readonly , is there any alternative that allows

me too make the all the input fields readonly.

Accepted Solutions (0)

Answers (2)

Answers (2)

srinivas_sistu
Active Contributor
0 Kudos

Hi, Kishore,

Even I tried the same but not successful. Because your container will not have Readonly propert so only way is to do it is doing for each and every element. for this also two ways are there.

1. directly set the readonly property of each and every element in Layout tab or

2. create a context variable of type boolean and map it to the readonly property of the UI.

Regards,

Srinivas.

Former Member
0 Kudos

Hi,

Create an attribute of type boolean and bind this to the readonly property of the inputfield.

set this attribute value as follows(assuming that the attribute name is ReadOnly)

wdContext.currentContextElement().setReadOnly(true);

Regards

Ayyapparaj