Skip to Content
avatar image
Former Member

making the input fields readonly

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 07, 2008 at 02:41 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 08, 2008 at 07:48 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded