I'm sorry but I'm a bit lost now. The only thing I could say to help you is:

in *recent* versions of XXE, you don't need a macro to reopen the currently opened document in normal, read-write, mode. The following command does this just fine:

XXE.open [reopen]

And if, on the contrary, you want reopen the document being edited in read-only mode, please invoke:

XXE.open [readOnly][reopen]

See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/XXE.open.html




On 06/07/2013 07:52 PM, Jeff Hooker wrote:
Right, setting is not the same as getting….

<macro>
<sequence>
<setvariable="url"expression="%d"plainString="true"/>
<commandname="XXE.close"/>
<getexpression="$url"/>
<commandname="XXE.edit"parameter="%_"></command>
</sequence>
</macro>




xmleditor-support@xmlmind.com wrote:
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.




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

Reply via email to