Dont know you want a simple 'for' loop or you are looking for 'for each' loop.
This can help you iterating a list <iterate list="listName" entry="listItem"> ... <!-- listItem is the object of List --> ... </iterate> P.S. Please ask such questions on user mailing list. Regards -- Chirag Manocha Emforium Pvt. Ltd. Contact :- +91-98735-47457, +91-98263-19099 Please don't print this Email unless you really need to - this will preserve trees on planet earth. ----- Original Message ----- > From: "Atul Vani" <[hidden email]> > To: [hidden email] > Sent: Monday, June 14, 2010 5:34:53 PM > Subject: Re: for loop in simple method > hi Swapnil, > > how about you use > <loop count="10" field="i"><log level="info" message="${i}"/></loop> > > never tried it, but i guess it would work. > Please use 'User Mailing List' for such questions. > > -- Thanks & Regards > Atul Vani > Enterprise Software Developer > HotWax Media Pvt. Ltd. > http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, > Google 'ofbiz' and see for yourself. > > Swapnil Sawant wrote: > > Hi, > > > > Can anyone pl let me know if there is any looping functionality (for > > loop) implemented in simple method of ofbiz ? > > > > I want to do iteration in simple method as given below : > > > > int start = <user entered value>; > > int end = <user entered value>; > > > > for(int i=start;i<=end;i++){ > > > > //some processing here > > > > } > > > > Any sample piece of code would be of great help. > > > > > > Thanks, > > Swapnil Sawant > > > > ________________________________ This Email may contain confidential > > or privileged information for the intended recipient (s) If you are > > not the intended recipient, please do not use or disseminate the > > information, notify the sender and delete it from your system. > > > > ______________________________________________________________________ > > |
And lastly be sure to check out the while loop, which is probably the closest to what you asked for.
Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/06/2010, at 12:23 AM, Chirag Manocha wrote: > Dont know you want a simple 'for' loop or you are looking for 'for each' loop. > > This can help you iterating a list > <iterate list="listName" entry="listItem"> > ... <!-- listItem is the object of List --> > ... > </iterate> > > P.S. Please ask such questions on user mailing list. > > Regards > -- > Chirag Manocha > Emforium Pvt. Ltd. > Contact :- +91-98735-47457, +91-98263-19099 > Please don't print this Email unless you really need to - this will preserve trees on planet earth. > > > > ----- Original Message ----- >> From: "Atul Vani" <[hidden email]> >> To: [hidden email] >> Sent: Monday, June 14, 2010 5:34:53 PM >> Subject: Re: for loop in simple method > >> hi Swapnil, >> >> how about you use >> <loop count="10" field="i"><log level="info" message="${i}"/></loop> >> >> never tried it, but i guess it would work. >> Please use 'User Mailing List' for such questions. >> >> -- Thanks & Regards >> Atul Vani >> Enterprise Software Developer >> HotWax Media Pvt. Ltd. >> http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, >> Google 'ofbiz' and see for yourself. >> >> Swapnil Sawant wrote: >>> Hi, >>> >>> Can anyone pl let me know if there is any looping functionality (for >>> loop) implemented in simple method of ofbiz ? >>> >>> I want to do iteration in simple method as given below : >>> >>> int start = <user entered value>; >>> int end = <user entered value>; >>> >>> for(int i=start;i<=end;i++){ >>> >>> //some processing here >>> >>> } >>> >>> Any sample piece of code would be of great help. >>> >>> >>> Thanks, >>> Swapnil Sawant >>> >>> ________________________________ This Email may contain confidential >>> or privileged information for the intended recipient (s) If you are >>> not the intended recipient, please do not use or disseminate the >>> information, notify the sender and delete it from your system. >>> >>> ______________________________________________________________________ >>> smime.p7s (3K) Download Attachment |
Free forum by Nabble | Edit this page |