I´ve a web agent, triggered in WebQuerySave event, that run a LotusScript (yes, must be LotusScript) and i need to check if there is any error (in that LS). If so, I don´t want to save this document, I mean, I want to retun to the edition of the document.
Can anybody help me? Thanks a lot.
Subject: WebAgent: has run ok ?
There is no such thing like return false on error like queryclose for client. But, there is a way that you can make it works exactly the same for webagent.
On ur web agent, in the onError go to existCase, and in the existCase exit the Sub and reopen the document using docUNID and the Print comment like these:
tmpDocId = currentDocId
url = dbaseFilePath + viewName + tmpDocId + “?editdocument”.
Subject: Thank you very much Tom!
Subject: WebAgent: has run ok ?
to call the url to reopen the document, the format:
existCase:
tmpDocId = currentDocId
url = dbaseFilePath + viewName + tmpDocId + “?editdocument”.
Print “[” + url + “]”