Hi Joel,
as you might know, with the new Tamino 4.1.1 documents do not contain an ino:id attribute anymore and as you mentioned right the XQuery fuction ‘tf:getInoId($x)’ would deliver the ino:id.
Unfortunately, this does not work with the xapp:select tag at present, because we ‘clean’ the documents return by queries from the ino:id information an keep this information in specilal nodeLocation objects belonging to their documents, therefore it is not possible to use the ino:id information in the xapp:select tag.
Now? I can offer you a workaround. As an example I have adapted the Query/PropertyQuery.jsp example.
Instead of using the xapp:select tag you can use a combination of dicrectcommand and browse tag.
1. Process a Xquery with a directcommand and store the result by setting the document attribute.
2. Browse over the result set and fill the HTML select manually.
e.g.:
<!-- Define the query-->
<xapp:setvar name="textVal" scope="session">
for $x in input()/Property/Address/State return $x
</xapp:setvar>
<!process query-->
<xapp:directcommand type="xquery" collection="${xappCollection$}" document="select" arg="${textVal$}"/>
<!-- Fill HTML select tag -->
<select name="varSelection">
<option value=""></option>
<xapp:browse pagesize="1000" document="select" >
<option value="<xapp:display select="$ID"/>"><xapp:display select="/State"/></option>
</xapp:browse>
</select>
This solution is not totally convenient, but it will hopefully solve your problem at present.
Bye
Thorsten
#webMethods#Tamino#API-Management