Hello,
just advertising the next version of X-Application 3.1.3: using this version you could create a query page like this
<BR><form action=?post? ...><BR><BR><input type=?text? name=?TFrageWert?/><BR><input type=?text? name=? DPraezisionWert?/><BR><select name=?DStichwortWert?>...</select><BR>...<BR><xapp:setvar name=?nGramFilter? scope=?session? default=??><BR> [nGram.nGram3N(?${TFrageWert$}?, /testcase1/Frage, 3, 0, 0) >= ${DPraezisionWert$})]<BR></xapp:setvar><BR><BR><xapp:setvar name=?stichWortFilter? scope=?session? default=??><BR> [./Stichwort = ?${DStichwortWert$}?]<BR></xapp:setvar><BR><BR><xapp:action type=?query? arg=?/testcase1${nGramFilter$}${stichWortFilter$}?><BR> <input type=?submit?/><BR></xapp:action><BR><BR></form><BR></pre><BR><BR>The evaluation mechanism of X-Application for variables allows you to define a default value. If the ?DStichwortWert? is not set, the second filter is empty.<BR><BR>For the current version 3.1.2 you could check the value of the ?DStichwortWert? via Scriptlet.<BR><BR><pre class="ip-ubbcode-code-pre"><BR><bdm:directcommand type = "query" schema = "testcase1" queryparm = "USEBODY"><BR>/testcase1/Frage[nGram.nGram3N('<% out.print(pageContext.getAttribute("TFrageWert")); %>', /testcase1/Frage, 3, 0, 0) >= <BR><% out.print(pageContext.getAttribute("DPraezisionWert")); %><BR><% <BR> if (...) {<BR> out.print(?and /testcase1/Stichwort = ? + pageContext.getAttribute("DStichwortWert"))<BR> }<BR>%><BR>...<BR>
Within the if expression you can check the value of the select parameter or the value of ?DStichwortWert? if it is valid to define the ?and? expression.
Does this help you?
Bye,
Christian.
#API-Management#Tamino#webMethods