I'm sorry but v4 is no longer supported. If you just made a typo when
typing "4.4.1", please do not hesitate to send a new support request.
On 06/07/2013 01:52 AM, Jeff Hooker wrote:
First, referring to version 4.4.1, is XXE.setReadOnly still a current
command? It’s in the commands.pdf document but not available from the
Tools > Execute Command window.
Second, can you see any reason why this shouldn’t close and reopen the
current file?
<command name="openReadOnlyFileForEditing">
<macro>
<sequence>
<set variable="document" expression="%d"/>
<command name="XXE.close" />
<command name="XXE.open" parameter="$document"/>
</sequence>
</macro>
</command>
As it stands, when I’ve opened a file in readOnly mode from my
repository, simply using “reopen” fails to check it out of the
repository. Instead, I’m attempting to close the document and reopen it
without the [readOnly] switch.
As I understand, %d should be the url of the current file, so I’m trying
to set it to a variable, close the current file, then reopen it using
the variable. I get the distinct impression I’ve misunderstood either
how “set” works or what %d is. If I strip the <set from the command, it
successfully closes the file but of course fails to reopen it.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support