Marc wrote: > I have a problem with the use of <choice>, I want that the user select a file > with selectURL and if he choices Cancel, I use the current file. > I do something like this : > <sequence> > <choice> > <command name="selectFile" > parameter="openFileURL %d"/> > <get expression="%d"/> > </choice> > <set expression="%_" variable="NomFichier" > plainString="true"/> > <get expression="$NomFichier"/> > <set variable="Liste" > > expression="join(document($NomFichier)//@AccrocheLien,' ')"/> > <get expression="$Liste"/> > <command name="pick" parameter="'Choisir > AccrocheLien' false %_"/> > <set expression="%_" variable="Accroche" > plainString="true"/> > </sequence> > but when I choice Cancel, the macro stops.
This is the normal behavior. Canceling command "selectFile" means aborting the whole macro. I'm sorry but I don't see how to implement this behavior: --- <choice> <command name="selectFile" parameter="openFileURL %d"/> <get expression="%d" plainString="true" /> </choice> ---

