Can a select1 refere to a value from itself ?

View: New views
2 Messages — Rating Filter:   Alert me  

Can a select1 refere to a value from itself ?

by masjab :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

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

by Alessandro Vernet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, May 9, 2008 at 11:52 AM, Masen J <masenjabban@...> 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 ops-users@... mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@...
For general help: mailto:sympa@...?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/