Open a document in Read Only mode

Hello

Here’s the story : I have a database DB1 with documents that I use to generate another document (call it OtherDoc) in another database (DB2). I did not create DB2 and would not like to touch it if possible.

Once this OtherDoc is created, I want users to see it but not modify it. If they want to modify it, they need to modify underlying data.

Anyway, the creation goes well, but I have trouble preventing users from changing the document. I use the read-only option of W.EditDocument, and it seems not to work at all.

Here’s the code :

Call OtherDoc.Save(True, False)

Call W.EditDocument(False, OtherDoc, True, “”, True, True)

The document I see is editable in all possible ways (edit button or double-click). There’s no Authors or Readers field there, and I’d prefer not to touch the QueryModeChange event.

I searched but didn’t find any hints on that. So has anyone experienced any problem with the read-only option of W.EditDocument ?

Subject: Open a document in Read Only mode

The new document, in the DB2 database, should NOT have an Author field on it. Then set the ACL of DB2 so that most users (not you or servers or the administrators) have only Author access with Create Document capability.

This means they can create, but they cannot edit once they are created. If they need the ability to change the values, just not in the UI. You will have to handle this another way and may have to modify some of the events you don’t want to. Though there are many ways to do this without that being necessary. Perhaps send more detail if this is not sufficient.

Mike Kinder

mkinder@acadiasolutions.com