List size in OFBiz

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

List size in OFBiz

Kathy jones
Hello all,
             Is there any way to count or get size of list in OFBiz. Please
help.

Thanks
-Kathy
Reply | Threaded
Open this post in threaded view
|

Re: List size in OFBiz

Divesh Dutta
Hello Kathy,
            It was bit tricky. I just searched for listsize in xml. This
code may help :
<set field="listSize" value="0" type="Long"/>
<if-not-empty field="maintList">
<set field="listSize" value="${util:size(maintList)}" type="Long"/>
</if-not-empty>

Thanks
-Divesh



Kathy jones wrote:
> Hello all,
>              Is there any way to count or get size of list in OFBiz. Please
> help.
>
> Thanks
> -Kathy
>
>