Orbeon with 3 nested combos

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

Orbeon with 3 nested combos

enrique_pasaron
I need some help with this.

The point is that I have 3 nested combos, so when I choose an option it loads de second combo (depending on the choice), and when I choose an option of the second combo it loads the third one.

Could someone please help me? I'm using Orbeon with Sql server 2000.

Thanks in advantage,

Enrique



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Orbeon with 3 nested combos

Ryan Puddephatt
Enrique,
        It all depends how your XML is laid out. If you can post a snippet
it would be helpful.

Ryan Puddephatt
Software Engineer
TFX Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotand
EH54 7DP
 
* [hidden email]
( 01506 407 110
7  01506 407 108
 

>-----Original Message-----
>From: [hidden email] [mailto:[hidden email]]
>Sent: 01 February 2006 17:40
>To: [hidden email]
>Subject: [ops-users] Orbeon with 3 nested combos
>
>I need some help with this.
>
>The point is that I have 3 nested combos, so when I choose an option it
>loads de second combo (depending on the choice), and when I choose an
>option of the second combo it loads the third one.
>
>Could someone please help me? I'm using Orbeon with Sql server 2000.
>
>Thanks in advantage,
>
>Enrique




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon with 3 nested combos

Erik Bruchez
Administrator
In reply to this post by enrique_pasaron
Enrique,

Impossible to give you an answer if you don't provide some code. If you
haven't written any, unfortunately we cannot develop a full example for
free, but the outline of the code would be:

o create three xforms:select1 controls

o use xforms:itemset to populate the xforms:select1 controls, bound to
separate XForms instances

o catch xforms-value-changed-events when the first control changes

o perform and XForms submission with replace="instance" to update the
second control

o implement a service on the server that responds to the submissions by
retrieving the relevant values from the database, with the SQL processor

And that's pretty much it!

-Erik

[hidden email] wrote:
> I need some help with this.
>
> The point is that I have 3 nested combos, so when I choose an option it loads de second combo (depending on the choice), and when I choose an option of the second combo it loads the third one.
>
> Could someone please help me? I'm using Orbeon with Sql server 2000.
>
> Thanks in advantage,
>
> Enrique




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon with 3 nested combos

enrique_pasaron
In reply to this post by enrique_pasaron

Hi Erik,

I did not wanto you to develop the whole of it. The point is that I did not
have the code itself, so I could not post it.

We are using Orbeon 2.8, and the development team has told me that they
have not seen it in the documentation provided anything related to replace
="instance", so they do not know if they can use it within that version.

I am sending you the instance, which goes as follows. Unfortunately, I am
not myself an expert, so if this is not what you need, please tell me so I
can tell the team to give me what you need.

Thanks in advance,

Enrique

<form>
      <datos_personales>
            <nombre>Pedro</nombre>
            <apellido1>Perez</apellido1>
            <apellido2>Lopez</apellido2>
      </datos_personales>
      .
      .
      .
      <datos>
      <divisiones>
      <division>
            <etiqueta>-- SELECCIONE UNA OPCION --</etiqueta>
      </division>
      <division>
            <etiqueta>DIVISION 1</etiqueta>
      </division>
      <division>
            <etiqueta>DIVISION 2</etiqueta>
      </division>
      </divisiones>
    <unidades>
      <unidad>
            <etiqueta> UNIDAD 1.1</etiqueta>
      </unidad>
      <unidad>
            <etiqueta> UNIDAD 1.2</etiqueta>
      </unidad>
      <unidad>
            <etiqueta> UNIDAD 2.1</etiqueta>
      </unidad>
      </unidades>
    <empresas>
      <empresa>
            <etiqueta>EMPRESA 1.1.1</etiqueta>
      </empresa>
      <empresa>
            <etiqueta>EMPRESA 1.1.2</etiqueta>
      </empresa>
      <empresa>
            <etiqueta>EMPRESA 1.2.1</etiqueta>
      </empresa>
      <empresa>
            <etiqueta>EMPRESA 2.1.1</etiqueta>
      </empresa>
      <empresa>
            <etiqueta>EMPRESA 2.1.2</etiqueta>
      </empresa>
      <empresa>
            <etiqueta>EMPRESA 2.1.3</etiqueta>
      </empresa>
      </empresas>
      </datos>
</form>







                                                                                                                                       
                      Erik Bruchez                                                                                                    
                      <ebruchez@orbeon.        To:       [hidden email]                                                      
                      com>                     cc:                                                                                    
                      Sent by: Erik            Subject:  Re: [ops-users] Orbeon with 3 nested combos                                  
                      Bruchez                                                                                                          
                      <[hidden email]                                                                                                
                      om>                                                                                                              
                                                                                                                                       
                                                                                                                                       
                      03/02/2006 00:23                                                                                                
                      Please respond to                                                                                                
                      ops-users                                                                                                        
                                                                                                                                       
                                                                                                                                       




Enrique,

Impossible to give you an answer if you don't provide some code. If you
haven't written any, unfortunately we cannot develop a full example for
free, but the outline of the code would be:

o create three xforms:select1 controls

o use xforms:itemset to populate the xforms:select1 controls, bound to
separate XForms instances

o catch xforms-value-changed-events when the first control changes

o perform and XForms submission with replace="instance" to update the
second control

o implement a service on the server that responds to the submissions by
retrieving the relevant values from the database, with the SQL processor

And that's pretty much it!

-Erik

[hidden email] wrote:
> I need some help with this.
>
> The point is that I have 3 nested combos, so when I choose an option it
loads de second combo (depending on the choice), and when I choose an
option of the second combo it loads the third one.
>
> Could someone please help me? I'm using Orbeon with Sql server 2000.
>
> Thanks in advantage,
>
> Enrique




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon with 3 nested combos

Erik Bruchez
Administrator
[hidden email] wrote:

 > We are using Orbeon 2.8, and the development team has told me that they
 > have not seen it in the documentation provided anything related to
replace
 > ="instance", so they do not know if they can use it within that version.

Unfortunately, replace="instance" is not supported with 2.8. You have
to use 3.0 and the new XForms engine to get all the new XForms
features.

 > I am sending you the instance, which goes as follows. Unfortunately,
 > I am not myself an expert, so if this is not what you need, please
 > tell me so I can tell the team to give me what you need.

Well, I am not sure what *you* need. I can only outline a quick
strategy for doing the same with 2.8.

With 2.8, this is harder to achieve and not as user-friendly. In a
first phase you will need an "Update" button under each list (in a
second phase, you can use JavaScript to submit automatically). That
button will be an xforms:submit. When you press on the button, your
entire XForms instance is submitted. On the server side, you can then
look at the currently selected values in the lists, and fill-out a new
instance appropriately before generating the entire updated page again.

Clearly, the easiest way would be to use 3.0.

-Erik

 >
 > Thanks in advance,
 >
 > Enrique
 >
 > <form>
 >       <datos_personales>
 >             <nombre>Pedro</nombre>
 >             <apellido1>Perez</apellido1>
 >             <apellido2>Lopez</apellido2>
 >       </datos_personales>
 >       .
 >       .
 >       .
 >       <datos>
 >       <divisiones>
 >       <division>
 >             <etiqueta>-- SELECCIONE UNA OPCION --</etiqueta>
 >       </division>
 >       <division>
 >             <etiqueta>DIVISION 1</etiqueta>
 >       </division>
 >       <division>
 >             <etiqueta>DIVISION 2</etiqueta>
 >       </division>
 >       </divisiones>
 >     <unidades>
 >       <unidad>
 >             <etiqueta> UNIDAD 1.1</etiqueta>
 >       </unidad>
 >       <unidad>
 >             <etiqueta> UNIDAD 1.2</etiqueta>
 >       </unidad>
 >       <unidad>
 >             <etiqueta> UNIDAD 2.1</etiqueta>
 >       </unidad>
 >       </unidades>
 >     <empresas>
 >       <empresa>
 >             <etiqueta>EMPRESA 1.1.1</etiqueta>
 >       </empresa>
 >       <empresa>
 >             <etiqueta>EMPRESA 1.1.2</etiqueta>
 >       </empresa>
 >       <empresa>
 >             <etiqueta>EMPRESA 1.2.1</etiqueta>
 >       </empresa>
 >       <empresa>
 >             <etiqueta>EMPRESA 2.1.1</etiqueta>
 >       </empresa>
 >       <empresa>
 >             <etiqueta>EMPRESA 2.1.2</etiqueta>
 >       </empresa>
 >       <empresa>
 >             <etiqueta>EMPRESA 2.1.3</etiqueta>
 >       </empresa>
 >       </empresas>
 >       </datos>
 > </form>



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws