This topic contains 4 replies, has 0 voices, and was last updated by Anonymous 9 years ago.
- April 28, 2011 at 10:00 am #754
I am making a testing order form, after submission, the form will keep open for marking the instance number. And another user will have to approve the request.
My problem is, when i click browse “X” to close the form, the instance will be locked. Then I need to reopen the instance and click “new form” button to unlock it.
Why the browse “X” cannot close the perfect form session and release the instance? If it is related to IE option, please specify what options should be changed.April 28, 2011 at 4:47 pm #5705
Dennis @ PerfectFormsBlocked
The instance locks because you don’t want two people editing the same instance at the same time. The last person to submit would have their changes saved and the first person would lose.
To answer the question properly I would need to have a better understanding of your process, however I can provide general direction: If the reason you are submitting an re-opening your instance is to get an instance number, you could use a behavior that submits, opens and submits the instance the first time “submit” is pressed, and then simply submits the form instance once every time thereafter.
Here is how you do that: Use a hidden helper field (# of times submitted). Build a behavior on when “submit” button is pressed. First set the hidden field using a formula: Value of the hidden field plus 1. Then use a simple branch object with a simple condition: Hidden field value = 2. If true submit and re-open same instance, if false submit and close.
Build another behavior on when form opens. Use a set field to set the instance number in a field. Then use a set field to set the hidden field using a formula: Value of the hidden field plus 1. Then use a simple branch object with a simple condition: Hidden field value = 3. If true submit and re-open same instance, if false submit and close.
I have built a simple test form to prove this works. If you would like to have a copy to review the behavior let me know and I will email the .pf file to you.April 28, 2011 at 7:00 pm #5706
Dennis @ PerfectFormsBlockedMay 31, 2011 at 2:02 am #5743
Thanks Dennis. I think this is a good workaround. Upon testing, I found that my colleague always lock the form instance I used to store the requester and operator relationship. How can I force unlock a opened instance?May 31, 2011 at 6:21 am #5744
i guess i can solve the problem by setting a smaller timeout.
You must be logged in to reply to this topic.