Hi,In the Following code if I remove the ‘alert’ message, the documnet does not get submitted, adding the alert message documents get submitted nice. How can I solve this…any Idea. Thanks.
It does not help …Putting this alert message before the window.location statement makes it work,
I need to put something in between submit statement and window.location statement, because I think before submission process is done window.location is getting executed, that is why putting a alert in the middle helps.
The submission itself is a new location request. The only difference between document.forms[0].submit() and window.location = url is that one is a POST request and the other is a GET. Use a $$Return field on the form to redirect the browser after the POST occurs.
That tells you that the document ID is not valid AND that there is no document appearing in the “AllDocID” view that has the value “0C9E7B8AEBC1B2ED442573610021C114” in the first sorted column. How are you getting the UNID?
ADDED: …or there may be an @DbLookup formula that’s failing on the form of the document you’re trying to redirect to.