Can a select1 refere to a value from itself ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can a select1 refere to a value from itself ?

masjab-2
Sorry for this bad headline, but I didn´t know how to explain...

I want to do something like this...

    <xforms:select1 ref="HERE IS MY PROBLEM!!!!">
           <xforms:label></xforms:label>
            <xforms:item>
                 <xforms:label>Choose One...</xforms:label>
                  <xforms:value/>
              </xforms:item>
              <xforms:itemset nodeset="instance('searchCategories-instance')/item">
                        <xforms:label ref="label"/>
                         <xforms:value ref="value"/>
              </xforms:itemset> 
     </xforms:select1>


where searchCategories is something like

<?xml version="1.0" encoding="UTF-8"?>
<searchCategories>
    <item>
        <label>Lemma</label>
        <value>lemma</value>
    </item>
    <item>
        <label>Root</label>
        <value>root</value>
    </item>
...
..
</searchCategories>


When the user selects from the select1 drop down for instance : "Lemma", then 
 <xforms:select1 ref="HERE IS MY PROBLEM!!!!"> should look like:
 <xforms:select1 ref="lemma">
When the user selects from the select1 drop down for instance : "Root", then 
 <xforms:select1 ref="HERE IS MY PROBLEM!!!!"> should look like:
 <xforms:select1 ref="root">

How can I do this?

THX for all your help!!!


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Can a select1 refere to a value from itself ?

Alessandro Vernet
Administrator
On Fri, May 9, 2008 at 11:52 AM, Masen J <[hidden email]> wrote:
> When the user selects from the select1 drop down for instance : "Lemma",
> then
>  <xforms:select1 ref="HERE IS MY PROBLEM!!!!"> should look like:
>  <xforms:select1 ref="lemma">
> When the user selects from the select1 drop down for instance : "Root",
> then
>  <xforms:select1 ref="HERE IS MY PROBLEM!!!!"> should look like:
>  <xforms:select1 ref="root">

And what value should go in the element <lemma> or <root> when the
corresponding item is selected from the drop-down?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws