representing trees in xforms / orbeon

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

representing trees in xforms / orbeon

Iain Malcolm

I want to model a tree structure, but can’t see quite how it should be done. 

 

A bit like the organisation example here: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-nested-repeats

But allowing me to have:

<departments>

  <department>

    <department>

      <department>

        <employee>

       </employee>

      </department>

    </department

    <employee>

    </employee>

  </department>

</departments>

 

Instead of just 1 level of department as in the documentation.

 

XML is so easy for this sort of thing, that I expected to find it easy in xforms too …..

 

Can I do this in the <xforms:model>?  I see a tree widget mentioned, but I can’t find any further info about it.

 

 

Iain Malcolm
Customer Solution Architect
Mob: +44 (0) 7867 820141 or Internally 7382 0141
E-mail: [hidden email]
Web: http://uk.fujitsu.com

Fujitsu Services Limited, Registered in England no 96056, Registered Office 22 Baker Street, London, W1U 3BW
This e-mail is only for the use of its intended recipient.  Its contents are subject to a duty of confidence and may be privileged.  Fujitsu Services does not guarantee that this e-mail has not been intercepted and amended or that it is virus-free.



--
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: representing trees in xforms / orbeon

Erik Bruchez
Administrator
You can use more than two levels of nested repeats in XForms. What you  
can't do at the moment is arbitrary nesting levels. E.g. if your  
document as 10 nested levels, you need 10 nested repeats.

If you just want to present the information as tree, you can use the  
xforms:select/xforms:select1 with xxforms:tree appearance. See for  
example:

   http://www.orbeon.com/ops/xforms-sandbox/sample/tree

What exactly would you like to do?

-Erik

On Feb 26, 2008, at 6:13 AM, Iain Malcolm wrote:

> I want to model a tree structure, but can’t see quite how it should  
> be done.
>
> A bit like the organisation example here: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-nested-repeats
> But allowing me to have:
> <departments>
>   <department>
>     <department>
>       <department>
>         <employee>
>        </employee>
>       </department>
>     </department
>     <employee>
>     </employee>
>   </department>
> </departments>
>
> Instead of just 1 level of department as in the documentation.
>
> XML is so easy for this sort of thing, that I expected to find it  
> easy in xforms too …..
>
> Can I do this in the <xforms:model>?  I see a tree widget mentioned,  
> but I can’t find any further info about it.
>
>
> Iain Malcolm
> Customer Solution Architect
> Mob: +44 (0) 7867 820141 or Internally 7382 0141
> E-mail: [hidden email]
> Web: http://uk.fujitsu.com
>
> Fujitsu Services Limited, Registered in England no 96056, Registered  
> Office 22 Baker Street, London, W1U 3BW
> This e-mail is only for the use of its intended recipient.  Its  
> contents are subject to a duty of confidence and may be privileged.  
> Fujitsu Services does not guarantee that this e-mail has not been  
> intercepted and amended or that it is virus-free.
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



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