Skip to Content
avatar image
Former Member

How to make form read read only at runtime?

Hi Experts,

I created one form in webdynpro java with Submit , Approve and reject buttons. When i click on the SUBMIT button my from subbmitted to approver to approve or reject.

now i want to make my form(Except APPROVE and REJECT button ) read only when it has submitted to approver.

Can any one please help me to solve this....

Regards,

sharada.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Apr 13, 2011 at 02:44 PM

    If it is a simple text view/text edit content, set the "read only" property to true when the approver opens it (UME role say Approver, and use a context boolean attribute for the read only property of text UI element). There are many ways, if you can give us more details...

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2011 at 09:54 AM

    Hi Sharda,

    Check the condition of the application, whether it has been submitted and then set the read only property of the button to true.

    Do this, by binding a binary type attribute to the read only property and set it true / false with respect to the conditions.

    Hope it helps, please revert in case of some issue.

    Cheers!!!

    Umang 😊

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 18, 2011 at 07:16 AM

    Sharada,

    its simple.

    When the page is loaded check the status of the form in database whether it is submitted.

    If Yes, set all the form elements readonly property to true and activate the Approve / reject buttons.

    In normal scenario do the other way round.

    hope this helps

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 18, 2011 at 07:35 AM

    hi

    You bind the read only property of UI elements to any attribute of type Boolean.

    On wdinit you can write a condition that if the approver is viewing the forms,Respected fields become read only

    else you can make it in submit button also

    You can change the read only state by changing the value of attribute to true and false

    Hope it works

    Best regards

    Suresh

    Add comment
    10|10000 characters needed characters exceeded