storing selected item from combobox

Hi,

what we found out is that our select tag is not able to handle your use case.

You are trying to fill the select box with two different queries for text and value.

Your result consits of more then one occurrence within one document. This works fine as long
as you just use text and no explizit queries for
text and value.
The relationship between text and value is realized by their ino:id.
In your specific use case the uniqueness of the ino:ids does no longer exist.

Therefore you can’t use the select tag if need different values for text and value.

BUT:
Here is a proposal how you can generate a HTML-select with the result you wish.
There is also an restriction: You can make this list “distinct”.

 <!-- read the data for your select-->
<xapp:directcommand type="query" document="allUsers" arg="/user"/>
...
<xapp:edit select="/result/@id">
<select name="lstUser">
  <!-- Browse over all documents -->
  <xapp:browse document="allUsers">
    <!-- iterate within the document over complex -->
    <xapp:loop document="allUsers" select="/user" iterate="complex" targetbase="user">
	 <option value="<xapp:display select="./id"/>"><xapp:display select="./name"/></option>
    </xapp:loop>
  </xapp:browse>
</select>
</xapp:edit>




This examples generates the HTML select tag as you wish.

Bye
Thorsten

[This message was edited by Thorsten Raab on 12 Nov 2002 at 16:00.]

thanx for your reply
Is this problem is going to be solved in newer versions of xapplication ?

LOVE

Hello Noushin,

hopefully you understand that we are not allowed to publicly assure new features of upcoming versions.
The further development of this community source software depends very much of the use cases of our customers. Unfortunately we need to prioritize the requests.
How important is this feature for you?

I would like to know if there are other customers interested in this use case?

Regards, Harald

Hello,

this bug is solved with X-Application 4.1.1.

Bye,
Christian.