Hi Joey,
thank you for sending the application.
I have used the idea I mentioned before. Let me show you the modified extract of you page:
...
//your first defined query and the corresponding select tag
<xapp:setvar name="unitType_query" scope="session">
for $x in input()/TypeValues[@type_name='unit']
return $x/@value_type
</xapp:setvar>
//I'll store the result of the select tag straight into the destionation attribute:
<xapp:edit select="./@type">
<xapp:select collection="${NMPCollection$}" text="${unitType_query$}">
//the javascript forces to reload the page after changing the state
<select onChange="javascript:document.forms['form_create'].action='create.jsp';
document.forms['form_create'].submit();">
<option value=""></option>
</select>
</xapp:select>
</xapp:edit>
...
//The second xapp:select will be displayed, when the a value is selected in the first select tag
<xapp:if condition="notempty" select="./@type" document="FOMTypeDocument" base="loop0" >
<xapp:setvar name="unitTypeValues_query" scope="session">
for $x in input()/TypeValues[@type_name='unit' and @value_type='
<xapp:display select="./@type"/>'] return $x/value
</xapp:setvar>
<xapp:edit select=".">
<xapp:select collection="${NMPCollection$}" text="${unitTypeValues_query$}">
<select name="VAL_selected-from-VAL-value_type-checkbox_<xapp:display select="$POS"/>">
</select>
</xapp:select>
</xapp:edit>
</xapp:if>
With this modifications on your page it works fine.
Bye
Thorsten
[This message was edited by Thorsten Raab on 25 Apr 2003 at 12:32.]
#webMethods#Tamino#API-Management