Hi
I’m trying to work out what can be causing a problem in an application we have.
When an action is performed on a document, there’s code to update related documents in a separate database.
However, sometimes the update doesn’t occur, and there’s no error given to the user.
I’m wondering what reasons people can think of why doc.save might not be working correctly.
I’ve tried checking document locking, but it seems to work in favour of the doc.save, rather than the user with the document open (they get the "another copy of this document was saved blah blha blah message)
any pointers would be appreciated!
Many thanks
Kiers
Subject: reasons why doc.save = false
The first response is correct ACL access, and reader/author fields…Can you provide more context?
Michael Robinson
http://www.invcs.com
Subject: RE: reasons why doc.save = false
Hi
It’s been a while but we solved this one.
There was an agent which ran on a single selected document from a view. It had been written using s.documentcontext.
If the document was open in read mode when the agent was run, and then a second agent was run on the same document, the second agent would see the document as open rather than as saved.
We used isUiDoc open to get around this, and also changed the first agent to use db.unprocessedDocuments.getFirstDocument as it was more stable.
Just in case any one finds this …
K