how can I do combobox dynamic?

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

how can I do combobox dynamic?

djalma.saraiva
Hello friends!
I need to make a dynamic combobox. I want to select a "product line",and generate the items dynamically for second combobox only for the "client" possible.
I made the example code from the site of Orbeon, but fails. I liked change the line below so you can put carrier in place of 'x10'.
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli [@ value = 'x10']"> 

Someone help me?

view.xhtml
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA </xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
           
            <xforms:instance id="instance" src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance" src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


                <xforms:instance id="carriers-instance2">
                <carriers>
                          <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
                         <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
                          <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
                          <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">       
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
                          <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
                          <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
                          <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
                          <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
                          <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
                          <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
                          <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
                          <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                           
            </xforms:bind> 
           
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age" incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
               
               
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                   
                    <xhtml:p>
                        <xforms:select1 ref="carrier" xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
                                         </xforms:itemset>
                            </xforms:select1>
                    </xhtml:p>
                </xforms:group>
       
                     
                 <xforms:output value="carrier"/>
                       
                       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
                       
                    <xhtml:p>
                        <xforms:select1 ref="carriercli" xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
                                     <xforms:itemset nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
                           </xhtml:p>                           

                </xforms:group>
               
                  <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada </xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
                               
   <xhtml:p>
                   
                    </xhtml:p>

                          <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
       
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
Reply | Threaded
Open this post in threaded view
|

Re: how can I do combobox dynamic?

StephR
Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  


--
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: how can I do combobox dynamic?

StephR
In reply to this post by djalma.saraiva
Sorry, my message was not clear.

In the example of the Orbeon web site, that select1 references "carrier"... which is located in main-forms-instance.xml. In your case, you mention "
carriercli " ... does it exit in that xml file ?



djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the sitf Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  


--
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: how can I do combobox dynamic?

djalma.saraiva
In reply to this post by StephR
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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


--
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

view.xhtml (8K) Download Attachment
main-xforms-instance.xml (1K) Download Attachment
page-flow.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how can I do combobox dynamic?

djalma.saraiva
In reply to this post by StephR
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:57 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Sorry, my message was not clear.

In the example of the Orbeon web site, that select1 references "carrier"... which is located in main-forms-instance.xml. In your case, you mention "
carriercli " ... does it exit in that xml file ?



djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the sitf Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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


--
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: how can I do combobox dynamic?

StephR
In reply to this post by djalma.saraiva
Here you go.

There were two other mistakes concerning the instance "carrier".. the last two values. I did some modifications in the page-flow also so it would work in my application : i followed the same philosophy as orbeon. The folder resources/apps/test with your three files in it... and the principle page-flow in resources with the matcher. In the address bar, I would have to put : /apps/test/ and that's it. Anyway, adapt if needed the page-flow.



Djalma Saraiva - PROJELER a écrit
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



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

<!--
    Copyright (C) 2005 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<instance>
    <age> PROJELER </age>
    <secret>42</secret>
    <textarea>TESTES XFORMS CONTROLS - PROJELER.</textarea>
    <label>TAH QUASE!</label>
    <date/>
    <flavor>v c</flavor>
    <carrier>hs</carrier>
    <carriercli>hs</carriercli>
    <country-name/>
    <new-item>
        <label>DJALMA</label>
        <value>lime</value>
    </new-item>
    <range>
        <value>1</value>
        <letter>A</letter>
    </range>
    <country/>
</instance>

<!--
    Copyright (C) 2004-2007 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate">

    <!--<title>XForms Controls</title>-->
    <!--<description>-->
        <!--<p xmlns="http://www.w3.org/1999/xhtml">-->
            <!--This example illustrates most XForms controls.-->
        <!--</p>-->
    <!--</description>-->

    <page path-info="/test/" view="view.xhtml"/>

<!--
    <page path-info="/xforms-controls/services/update-countries" view="services/update-countries.xpl"/>
    <page path-info="/xforms-controls/services/countries" view="services/countries.xpl"/>
-->
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>


--
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

view.xhtml (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how can I do combobox dynamic?

djalma.saraiva
Thanks for your reply!
 
No change seen in the files me sent, I think you forgot to attach the changes.
 
Thank you Stephane!

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 11:50 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Here you go.

There were two other mistakes concerning the instance "carrier".. the last two values. I did some modifications in the page-flow also so it would work in my application : i followed the same philosophy as orbeon. The folder resources/apps/test with your three files in it... and the principle page-flow in resources with the matcher. In the address bar, I would have to put : /apps/test/ and that's it. Anyway, adapt if needed the page-flow.



Djalma Saraiva - PROJELER a écrit
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



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


<!--
    Copyright (C) 2005 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<instance>
    <age> PROJELER </age>
    <secret>42</secret>
    <textarea>TESTES XFORMS CONTROLS - PROJELER.</textarea>
    <label>TAH QUASE!</label>
    <date/>
    <flavor>v c</flavor>
    <carrier>hs</carrier>
    <carriercli>hs</carriercli>
    <country-name/>
    <new-item>
        <label>DJALMA</label>
        <value>lime</value>
    </new-item>
    <range>
        <value>1</value>
        <letter>A</letter>
    </range>
    <country/>
</instance>


<!--
    Copyright (C) 2004-2007 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate">

    <!--<title>XForms Controls</title>-->
    <!--<description>-->
        <!--<p xmlns="http://www.w3.org/1999/xhtml">-->
            <!--This example illustrates most XForms controls.-->
        <!--</p>-->
    <!--</description>-->

    <page path-info="/test/" view="view.xhtml"/>

<!--
    <page path-info="/xforms-controls/services/update-countries" view="services/update-countries.xpl"/>
    <page path-info="/xforms-controls/services/countries" view="services/countries.xpl"/>
-->
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>



--
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


--
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: how can I do combobox dynamic?

StephR
?????

We have a problem then... because I opened the files and I see the changes I made. Oh there weren't many : 3 lines in your view.xhtml and one in the page-flow....

It doesn't work?



Djalma Saraiva - PROJELER a écrit :
Thanks for your reply!
 
No change seen in the files me sent, I think you forgot to attach the changes.
 
Thank you Stephane!

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 11:50 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Here you go.

There were two other mistakes concerning the instance "carrier".. the last two values. I did some modifications in the page-flow also so it would work in my application : i followed the same philosophy as orbeon. The folder resources/apps/test with your three files in it... and the principle page-flow in resources with the matcher. In the address bar, I would have to put : /apps/test/ and that's it. Anyway, adapt if needed the page-flow.



Djalma Saraiva - PROJELER a écrit
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  


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


<!--
    Copyright (C) 2005 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<instance>
    <age> PROJELER </age>
    <secret>42</secret>
    <textarea>TESTES XFORMS CONTROLS - PROJELER.</textarea>
    <label>TAH QUASE!</label>
    <date/>
    <flavor>v c</flavor>
    <carrier>hs</carrier>
    <carriercli>hs</carriercli>
    <country-name/>
    <new-item>
        <label>DJALMA</label>
        <value>lime</value>
    </new-item>
    <range>
        <value>1</value>
        <letter>A</letter>
    </range>
    <country/>
</instance>


<!--
    Copyright (C) 2004-2007 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate">

    <!--<title>XForms Controls</title>-->
    <!--<description>-->
        <!--<p xmlns="http://www.w3.org/1999/xhtml">-->
            <!--This example illustrates most XForms controls.-->
        <!--</p>-->
    <!--</description>-->

    <page path-info="/test/" view="view.xhtml"/>

<!--
    <page path-info="/xforms-controls/services/update-countries" view="services/update-countries.xpl"/>
    <page path-info="/xforms-controls/services/countries" view="services/countries.xpl"/>
-->
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>



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


--
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: how can I do combobox dynamic?

djalma.saraiva
Thank you very much!
 
It worked changes! :)

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 12:21 PM
Subject: Re: [ops-users] how can I do combobox dynamic?

?????

We have a problem then... because I opened the files and I see the changes I made. Oh there weren't many : 3 lines in your view.xhtml and one in the page-flow....

It doesn't work?



Djalma Saraiva - PROJELER a écrit :
Thanks for your reply!
 
No change seen in the files me sent, I think you forgot to attach the changes.
 
Thank you Stephane!

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 11:50 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Here you go.

There were two other mistakes concerning the instance "carrier".. the last two values. I did some modifications in the page-flow also so it would work in my application : i followed the same philosophy as orbeon. The folder resources/apps/test with your three files in it... and the principle page-flow in resources with the matcher. In the address bar, I would have to put : /apps/test/ and that's it. Anyway, adapt if needed the page-flow.



Djalma Saraiva - PROJELER a écrit
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  


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


<!--
    Copyright (C) 2005 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<instance>
    <age> PROJELER </age>
    <secret>42</secret>
    <textarea>TESTES XFORMS CONTROLS - PROJELER.</textarea>
    <label>TAH QUASE!</label>
    <date/>
    <flavor>v c</flavor>
    <carrier>hs</carrier>
    <carriercli>hs</carriercli>
    <country-name/>
    <new-item>
        <label>DJALMA</label>
        <value>lime</value>
    </new-item>
    <range>
        <value>1</value>
        <letter>A</letter>
    </range>
    <country/>
</instance>


<!--
    Copyright (C) 2004-2007 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate">

    <!--<title>XForms Controls</title>-->
    <!--<description>-->
        <!--<p xmlns="http://www.w3.org/1999/xhtml">-->
            <!--This example illustrates most XForms controls.-->
        <!--</p>-->
    <!--</description>-->

    <page path-info="/test/" view="view.xhtml"/>

<!--
    <page path-info="/xforms-controls/services/update-countries" view="services/update-countries.xpl"/>
    <page path-info="/xforms-controls/services/countries" view="services/countries.xpl"/>
-->
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>



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



--
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


--
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: how can I do combobox dynamic?

djalma.saraiva
In reply to this post by StephR
Hello!
How do I find the value selected in the second combobox (Cliente)?
I can not find the value of the ref = carrier because it is already used in the first combobox.
I take this value for concatenate to show a figure (as in the example of the site)
I tried to do using "instance ( 'carriers - instance2') / carrier [@ value = instance ( 'instance') / carrier]."
 
What do you suggest?

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271

Brazil!!
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 11:50 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Here you go.

There were two other mistakes concerning the instance "carrier".. the last two values. I did some modifications in the page-flow also so it would work in my application : i followed the same philosophy as orbeon. The folder resources/apps/test with your three files in it... and the principle page-flow in resources with the matcher. In the address bar, I would have to put : /apps/test/ and that's it. Anyway, adapt if needed the page-flow.



Djalma Saraiva - PROJELER a écrit
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



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


<!--
    Copyright (C) 2005 Orbeon, Inc.

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.

    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<instance>
    <age> PROJELER </age>
    <secret>42</secret>
    <textarea>TESTES XFORMS CONTROLS - PROJELER.</textarea>
    <label>TAH QUASE!</label>
    <date/>
    <flavor>v c</flavor>
    <carrier>hs</carrier>
    <carriercli>hs</carriercli>
    <country-name/>
    <new-item>
        <label>DJALMA</label>
        <value>lime</value>
    </new-item>
    <range>
        <value>1</value>
        <letter>A</letter>
    </range>
    <country/>
</instance>


<!--
    Copyright (C) 2004-2007 Orbeon, Inc.
 
    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU Lesser General Public License as published by the Free Software Foundation; either version
    2.1 of the License, or (at your option) any later version.
 
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Lesser General Public License for more details.
 
    The full text of the license is available at http://www.gnu.org/copyleft/lesser.html
-->
<config xmlns="http://www.orbeon.com/oxf/controller"
        xmlns:xu="http://www.xmldb.org/xupdate">

    <!--<title>XForms Controls</title>-->
    <!--<description>-->
        <!--<p xmlns="http://www.w3.org/1999/xhtml">-->
            <!--This example illustrates most XForms controls.-->
        <!--</p>-->
    <!--</description>-->

    <page path-info="/test/" view="view.xhtml"/>

<!--
    <page path-info="/xforms-controls/services/update-countries" view="services/update-countries.xpl"/>
    <page path-info="/xforms-controls/services/countries" view="services/countries.xpl"/>
-->
    <epilogue url="oxf:/config/epilogue.xpl"/>

</config>



--
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


--
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

test.rar (286K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how can I do combobox dynamic?

ilangostl
In reply to this post by djalma.saraiva
Hi Djalma
I had written an XForm for the same dynamic combo box. Do you want me to give you the code.
By the way, is your combo box double combo or triple-combo?

regards
i

On Dec 19, 2007 8:08 AM, Djalma Saraiva - PROJELER < [hidden email]> wrote:
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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


--
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




--
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: how can I do combobox dynamic?

djalma.saraiva
Hi,

Of course, then attached the code that used to solve my problem.

Now, in fact, I have another ... I want to make that the second combo also display the logo of the company that I choose, but I am not able to do so. If you or someone else can help me, I should be grateful!

Happy new year!

Regards,

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
 
 

2007/12/31, XGuy <>:
Hi Djalma
I had written an XForm for the same dynamic combo box. Do you want me to give you the code.
By the way, is your combo box double combo or triple-combo?

regards
i

On Dec 19, 2007 8:08 AM, Djalma Saraiva - PROJELER < [hidden email]> wrote:
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target=_blank>www.projeler.com.br
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

 
Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/file/p14415439/view.xhtml" target=_blank>http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2002/xforms" target=_blank>"http://www.w3.org/2002/xforms"
    xmlns:f=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/formatting" target=_blank>"http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/1999/xhtml" target=_blank>"http://www.w3.org/1999/xhtml"
    xmlns:xxforms=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xforms" target=_blank>"http://orbeon.org/oxf/xml/xforms"
    xmlns:xi=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XInclude" target=_blank>"http://www.w3.org/2001/XInclude"
    xmlns:xxi=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xinclude" target=_blank>"http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XMLSchema" target=_blank>"http://www.w3.org/2001/XMLSchema"
    xmlns:widget=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target=_blank>"http://orbeon.org/oxf/xml/widget"
    xmlns:ev=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/xml-events" target=_blank>"http://www.w3.org/2001/xml-events"
    xmlns:xdt=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2005/xpath-datatypes" target=_blank>"http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget=<A onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target=_blank>"http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target=_blank>http://www.ow2.org/wws


--
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: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target=_blank>http://www.ow2.org/wws




--
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: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target=_blank>http://www.ow2.org/wws




--
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

test.rar (310K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how can I do combobox dynamic?

Djalma Saraiva
Hi,

Of course, then attached the code that used to solve my problem.

Now, in fact, I have another ... I want to make that the second combo also display the logo of the company that I choose, but I am not able to do so. If you or someone else can help me, I should be grateful!

Happy new year!

Regards,

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 


2008/1/2, Djalma Saraiva - PROJELER <[hidden email]>:
Hi,

Of course, then attached the code that used to solve my problem.

Now, in fact, I have another ... I want to make that the second combo also display the logo of the company that I choose, but I am not able to do so. If you or someone else can help me, I should be grateful!

Happy new year!

Regards,
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target="_blank">www.projeler.com.br
 
 

2007/12/31, XGuy <>:
Hi Djalma
I had written an XForm for the same dynamic combo box. Do you want me to give you the code.
By the way, is your combo box double combo or triple-combo?

regards
i

On Dec 19, 2007 8:08 AM, Djalma Saraiva - PROJELER < [hidden email]> wrote:
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target="_blank">www.projeler.com.br
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

 
Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/file/p14415439/view.xhtml" target="_blank">http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2002/xforms" target="_blank">"http://www.w3.org/2002/xforms"
    xmlns:f=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/formatting" target="_blank">"http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/1999/xhtml" target="_blank">"http://www.w3.org/1999/xhtml"
    xmlns:xxforms=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xforms" target="_blank">"http://orbeon.org/oxf/xml/xforms"
    xmlns:xi=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XInclude" target="_blank">"http://www.w3.org/2001/XInclude"
    xmlns:xxi=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xinclude" target="_blank">"http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XMLSchema" target="_blank">"http://www.w3.org/2001/XMLSchema"
    xmlns:widget=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target="_blank">"http://orbeon.org/oxf/xml/widget"
    xmlns:ev=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/xml-events" target="_blank">"http://www.w3.org/2001/xml-events"
    xmlns:xdt=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2005/xpath-datatypes" target="_blank">"http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target="_blank">"http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws


--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws





--
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: how can I do combobox dynamic?

Djalma Saraiva

Hi,

Of course, then attached the code that used to solve my problem. 
 
Please confirm if my example can help you.

Now, in fact, I have another ... I want to make that the second combo also display the logo of the company that I choose, but I am not able to do so. If you or someone else can help me, I should be grateful!

Happy new year!

Regards,
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target="_blank">www.projeler.com.br


2008/1/2, Djalma Saraiva - PROJELER <[hidden email]>:
Hi,

Of course, then attached the code that used to solve my problem.

Now, in fact, I have another ... I want to make that the second combo also display the logo of the company that I choose, but I am not able to do so. If you or someone else can help me, I should be grateful!

Happy new year!

Regards,
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target="_blank">www.projeler.com.br
 
 

2007/12/31, XGuy <>:
Hi Djalma
I had written an XForm for the same dynamic combo box. Do you want me to give you the code.
By the way, is your combo box double combo or triple-combo?

regards
i

On Dec 19, 2007 8:08 AM, Djalma Saraiva - PROJELER < [hidden email]> wrote:
Thanks for your help!
 
I changed the code as suggested. See if this is what you mean, please.
 
If you run the application, see will print the value of carrier  that it is being changed as the option of the combobox. I spent as an argument carrier, hoping that it dynamic, as was the label. But it did not work.
 
Here in the attached code.
 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carrier [value =  'x10']">  (I do not want to be fixed in this way.)
 
<xforms:itemset nodeset="instance('carriers-instance2')/carrier[@value = carrier]  ">  (
I need this way)
 
 

Djalma Saraiva
[hidden email]
Tel +55 51 2117 1872 | +55 11 3717 5271
 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.projeler.com.br/" target="_blank">www.projeler.com.br
 
 
----- Original Message -----
Sent: Wednesday, December 19, 2007 10:34 AM
Subject: Re: [ops-users] how can I do combobox dynamic?

 
Check again the source code of the XForms Controls example

I believe that
<xforms:select1 ref="carriercli" ...> is wrong because your a point the the same instance as your itemset... where it should be another instance so that the value you select will be saved in that instance. Am I clear ? :/

djalma.saraiva a écrit :
Hello friends! 
I need to make a dynamic combobox. I want to select a "product line",and
generate the items dynamically for second combobox only for the "client"
possible. 
I made the example code from the site of Orbeon, but fails. I liked change
the line below so you can put carrier in place of 'x10'. 
<Xforms: itemset nodeset = "instance ( 'carriers - instance2') / carriercli
[@ value = 'x10']"> 

Someone help me?

<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.nabble.com/file/p14415439/view.xhtml" target="_blank">http://www.nabble.com/file/p14415439/view.xhtml view.xhtml 
----------------------------------------------------------------------------------------------------
<xhtml:html xmlns:xforms=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2002/xforms" target="_blank">"http://www.w3.org/2002/xforms"
    xmlns:f=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/formatting" target="_blank">"http://orbeon.org/oxf/xml/formatting" 
    xmlns:xhtml=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/1999/xhtml" target="_blank">"http://www.w3.org/1999/xhtml"
    xmlns:xxforms=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xforms" target="_blank">"http://orbeon.org/oxf/xml/xforms"
    xmlns:xi=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XInclude" target="_blank">"http://www.w3.org/2001/XInclude"
    xmlns:xxi=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/xinclude" target="_blank">"http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/XMLSchema" target="_blank">"http://www.w3.org/2001/XMLSchema"
    xmlns:widget=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target="_blank">"http://orbeon.org/oxf/xml/widget"
    xmlns:ev=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2001/xml-events" target="_blank">"http://www.w3.org/2001/xml-events"
    xmlns:xdt=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.w3.org/2005/xpath-datatypes" target="_blank">"http://www.w3.org/2005/xpath-datatypes">

    <xhtml:head>

        <xhtml:title> ROTEMENTO DE ENGENHEIROS DA QUALIADE ASSEGURADA
</xhtml:title>
        <xhtml:style type="text/css">
            .controls-range { margin-top: 1em; margin-bottom: 2em; }
            .xforms-textarea { font-family: sans-serif; }
        </xhtml:style>
        <xforms:model id="main-model">
            <xforms:action ev:event="xforms-ready">
                <xforms:send submission="countries-submission"/>
                <xforms:setfocus control="age-input-control"/>
            </xforms:action>
            <!-- Here we illustrate how XForms instances can be included
with the @src attribute -->
            <xforms:instance id="instance"
src="oxf:/apps/xforms-controls/main-xforms-instance.xml"/>
            <xforms:instance id="resources-instance"
src="oxf:/apps/xforms-controls/resources.xml"/>
            <xforms:instance id="carriers-instance">
                <carriers>
                    <carrier value="hs">
                        <label>HS</label>
                    </carrier>
                    <carrier value="ms">
                        <label>MS</label>
                    </carrier>
                    <carrier value="x10">
                        <label>X10/ACTION</label>
                    </carrier>
                    <carrier value="sprint">
                        <label>SPRINT</label>
                    </carrier>
                    <carrier value="I6">
                        <label>I6</label>
                    </carrier>
                    <carrier value="cabecote16">
                        <label>CABECOTE I6</label>
                    </carrier>
                </carriers>
            </xforms:instance>


		<xforms:instance id="carriers-instance2">
                <carriers>
			  <carriercli value="hs">
                        <label>FORD</label>
                    </carriercli>
                    <carriercli value="hs">
                        <label>TROLLER</label>
                    </carriercli>
                    <carriercli value="ms">
                        <label>AGCO</label>
                    </carriercli>
			 <carriercli value="ms">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>VALTRA</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>FIAT</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>AGRALE</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>VOLVO</label>
                    </carriercli>
                    <carriercli value="x10">
                        <label>CNH</label>
                    </carriercli>
                    <carriercli value="x10">	
                        <label>INTERNATIONAL MEXICO</label>
                    </carriercli>
			  <carriercli value="x10">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>AGRALE</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>GM</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>NISSAN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="sprint">
                        <label>APLICACOES_ESPECIAIS</label>
                    </carriercli>
			  <carriercli value="i6">
                        <label>VOLKSWAGEN</label>
                    </carriercli>
			  <carriercli value="cabecote_i6">
                        <label>INTERNATIONAL MELROSE</label>
                    </carriercli>
                </carriers>
            </xforms:instance>

            <xforms:bind nodeset="instance('instance')">
                            
            </xforms:bind> 
            
            </xforms:model>
        <xhtml:style type="text/css">
            .input input { width: 20em; }
            .password { width: 20em; }
            .textarea { height: 6em; width: 20em; }
            .widget-tab-panel { padding-top: 1em; }
            .widget-tabs { width: 50em; }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <widget:tabs>
            <widget:tab id="text-controls" selected="true">
                <widget:label>Text controls</widget:label>
                <xhtml:p>
                    <xforms:input id="age-input-control" ref="age"
incremental="true" class="input" xxforms:maxlength="3" navindex="1">
                    </xforms:input>
                </xhtml:p>
                
                
            </widget:tab>
            <widget:tab id="selection-controls">
                <widget:label> ROTEAMENTO </widget:label>
                <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Linha de Produto </xforms:label>
                    
                    <xhtml:p>
                        <xforms:select1 ref="carrier"
xxforms:refresh-items="true">
                            <xforms:label class="fixed-width"/>
                               <xforms:itemset
nodeset="instance('carriers-instance')/carrier">
                                  <xforms:label ref="label"/>
                                  <xforms:value ref="@value"/>
					 </xforms:itemset>
                            </xforms:select1>
             	       </xhtml:p>
                </xforms:group>
	
		     <!-- Mostra a linha de produto selecionada -->
                 <xforms:output value="carrier"/>
	                
		       <xforms:group appearance="xxforms:fieldset">
                   <xforms:label> Cliente </xforms:label>
			
                    <xhtml:p>
                        <xforms:select1 ref="carriercli"
xxforms:refresh-items="true" xxforms:filter="true">
                            <xforms:label class="fixed-width"/>
				     <xforms:itemset
nodeset="instance('carriers-instance2')/carriercli[@value = 'x10']">
                                <xforms:label ref="label"/>
                                <xforms:value ref="@value"/>
                            </xforms:itemset>
                        </xforms:select1>
			   </xhtml:p>	                    

                </xforms:group>
		
	          <xforms:group appearance="xxforms:fieldset">
                    <xforms:label> Engenherio Qualidade Assegurada
</xforms:label>
                    <xhtml:p>
                        <xforms:input ref="new-item/label" navindex="10">
                            <xforms:label
class="fixed-width">Nome:</xforms:label>
                        </xforms:input>
                    </xhtml:p>
				
 			  <xhtml:p>
                    
                    </xhtml:p>

			  <xhtml:p>
                        <p>Foto: </p>

                    </xhtml:p>
	
                </xforms:group>
             </widget:tab>
        </widget:tabs>

        <widget:xforms-instance-inspector
xmlns:widget=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://orbeon.org/oxf/xml/widget" target="_blank">"http://orbeon.org/oxf/xml/widget"/>

    </xhtml:body>
</xhtml:html>
  



--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws


--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws




--
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: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank"> http://www.ow2.org/wws





--
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

test.rar (310K) Download Attachment