Paging on minilang

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Paging on minilang

ian tabangay
Hi.
Is there a way to define a paging screens for listing hundreds of data? I
browsed through the ofbiz package and theyre either implemented on bsh or
java.
thanks


~ ian
Reply | Threaded
Open this post in threaded view
|

Re: Paging on minilang

Pranay Pandey-2
Hello Ian,

There may be two ways to do that if you are going to use form widget
then you have add in screen
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"
default-value="0"/>
                <set field="viewSize" from-field="parameters.VIEW_SIZE"
type="Integer" default-value="50"/>
and then in form use paginate-target="ScreenName "  list-name="listIt"
you will need to fetch the list in screen itself or you will have to use
"performFind" in the form" and if it is complex than by  using bsh it
can be implemented. Find some relevant code and implement the logic.

--
Thanks and Regards
Pranay Pandey


//ian tabangay wrote:

> Hi.
> Is there a way to define a paging screens for listing hundreds of data? I
> browsed through the ofbiz package and theyre either implemented on bsh or
> java.
> thanks
>
>
> ~ ian
>
>  


Reply | Threaded
Open this post in threaded view
|

Re: Paging on minilang

BJ Freeman
In reply to this post by ian tabangay
paging is part of the widgets.
look in /framework/widgets/.../htmlscreenrender.java


ian tabangay sent the following on 3/31/2008 2:51 AM:
> Hi.
> Is there a way to define a paging screens for listing hundreds of data? I
> browsed through the ofbiz package and theyre either implemented on bsh or
> java.
> thanks
>
>
> ~ ian
>

Reply | Threaded
Open this post in threaded view
|

Re: Paging on minilang

ian tabangay
In reply to this post by Pranay Pandey-2
Thanks!

~ ian

On Mon, Mar 31, 2008 at 7:26 PM, Pranay Pandey <
[hidden email]> wrote:

> Hello Ian,
>
> There may be two ways to do that if you are going to use form widget
> then you have add in screen
> <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer"
> default-value="0"/>
>                <set field="viewSize" from-field="parameters.VIEW_SIZE"
> type="Integer" default-value="50"/>
> and then in form use paginate-target="ScreenName "  list-name="listIt"
> you will need to fetch the list in screen itself or you will have to use
> "performFind" in the form" and if it is complex than by  using bsh it
> can be implemented. Find some relevant code and implement the logic.
>
> --
> Thanks and Regards
> Pranay Pandey