I don't know if it will make any difference, but you might try using the
-C1 or -C2 options. They, like the -r option you've tried, are found at
help 5717. I was thinking along the lines of:
Runtime.getRuntime().exec("<editor path="> -C2
\"doc_read_only(current_doc(), 1)\" <file_path>");
Also, if you always want it to open read-only and the above suggestion
doesn't work, you could also try putting the
doc_read_only(current_doc(), 1) function in an instance.acl file which
will be automatically read each time an instance of a particular doc
type is opened.
Gary Ouzts wrote:
> Thanks Christophe, but I have tried that, and the "-r" option does not seem to
> have any effect when attempting to execute the request from Java. If I enter the
> command in a Windows command window (epic.exe -r <file path=">) that does open it
> up in read-only mode. So for some reason, running the editor from Java behaves
> differently than running the editor command from a command line.