Paging issue

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

Paging issue

trainee24
hello,
i would like to ask is it possible to implement paging in orbeon 3.5.1? could someone please give me some guides
on how to implement it? Any help given will be greatly appreciated. Thanks in advance.


Regards,
trainee24
Reply | Threaded
Open this post in threaded view
|

Re: Paging issue

Alessandro Vernet
Administrator
On 10/10/07, trainee24 <[hidden email]> wrote:
> i would like to ask is it possible to implement paging in orbeon 3.5.1?
> could someone please give me some guides
> on how to implement it? Any help given will be greatly appreciated. Thanks
> in advance.

There are essentially 2 ways, depending on the number of total items:

1) If it is reasonable to load all the items in an instance, you can
then do the paging by storing the current page in another instance and
using in the <xforms:repeat> a nodeset expression like
/items/item[position() ge number(instance('page')) * 20 and position()
lt (number(instance('page')) +1) * 20].

2) Otherwise, you need to query the database every time the user moves
to next/previous page to get a set of data which has exactly the size
of one page.

#2 is the most scalable, but adds round trips to the database and
usally requires some more coding.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
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