Hi Joey,
it isn’t the xapp:select tag causing your problems.
<xapp:edit select=".">
<xapp:select collection="${NMPCollection$}"
xquery="for $x in input()/CapabilityType return <sel>{$x/@id}{$x/type}</sel>"
value="/sel/@id" text="/sel/type" distinct="false">
<select name="VAL_type">
</select>
</xapp:select>
</xapp:edit>
</pre><BR><BR>It is the xapp:edit tag causing the problem. With the "." you are pointing to the current node within an existing context, but you aren't using a context tag(e.g. loop, browse...) and this place.<BR>Therefore the <B><xapp:edit select="."/></B> points to a wrong node.<BR><BR>If address the desired node by an absolute path, when your problem vanishes:<BR><pre class="ip-ubbcode-code-pre">
<xapp:edit select="/Capability/@primary_type_id">
<xapp:select collection="${NMPCollection$}"
xquery="for $x in input()/CapabilityType return <sel>{$x/@id}{$x/type}</sel>"
value="/sel/@id" text="/sel/type" distinct="false">
<select name="VAL_type">
</select>
</xapp:select>
</xapp:edit>
I have seen a second <xapp:edit select=“.”>…</xapp:edit> for parent. You need to change
it analogous:
<xapp:edit select=“/Capability/@parent_id”>.
Hope this will help you
Bye Thorsten
#webMethods#API-Management#Tamino