Skip to main content
1-Visitor
September 2, 2015
Question

How to lock a file inside Arbortext Editor?

  • September 2, 2015
  • 1 reply
  • 1102 views

Hello Gurus!

So, I've been facing a problem and I would like to know if you could help me to solve it. Please, let me explain you a little bit about what I'm doing.

I implemented this plug-in in the Editor which allows me to load some XML files and modify the document according to the XML, however, while I'm loading the file I'm making the modifications and I wouldn't like that someone could try to manually modify some content in the file at the same time. Is there a way to lock the file I'm using and modifying or maybe the editor itself while I'm executing a task?

In advance I appreciate so much your time and response.

Paulette Zorrilla

1 reply

5-Regular Member
September 11, 2015

Hi Paulette,

What version of Editor are you working with?  When I try to open a document my co-worker has open, my Editor opens it as read-only.

Since your ACL is modifying the document, maybe you can use the doc_read_only function to determine the status before continuing the code?