Hi,
indeed it’s a bug.
For the moment we can not offer you a perfect solution, but a quick workaround:
Instead of using a certain variable - with it’s value - more often within an other variable/expression, you need to define different variables names for each occurrence of the former variables/values.
Examples:
Previous:
<BR><bdm:setvar name="tmpQuery" value="something"/><BR><bdm:directcommand type="query" document="searchList" arg="/myDoc[Field1~='${tmpQuery$}' or Field2~='${tmpQuery$}']" /><BR></pre><BR><BR>Workaround:<BR><BR><pre class="ip-ubbcode-code-pre"><BR><bdm:setvar name="tmpQuery" value="something"/><BR><bdm:setvar name="tmpQuery2" value="something"/><BR><bdm:directcommand type="query" document="searchList" arg="/myDoc[Field1~='${tmpQuery$}' or Field2~='${tmpQuery2$}']" /><BR>
If ‘tmpQuery’ repesents an input-field in your JavaServer Page and therefore it is not defined by using ‘setvar’, you need to
duplicate it too, e.g. using Java Script.
OK, this seems not convenient, but I hope it will help you right now.
Cheers
Thorsten
[This message was edited by Thorsten Raab on 20 Aug 2002 at 10:27.]
#webMethods#Tamino#API-Management