cancel
Showing results for 
Search instead for 
Did you mean: 

How to make form read read only at runtime?

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.