ID Generation in OFBiz

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

ID Generation in OFBiz

vivek.mi
Hi All,


I have created some demo form in ofbiz and as of now ID is geneated
automatically, first being 10000. But I want to generate IDs starting from
some other number with a gap of 1 in each ID. How can it be done in OFBiz?

Thanks & regards,
Vivek
Vivek Mishra
Reply | Threaded
Open this post in threaded view
|

Re: ID Generation in OFBiz

Vikas Mayur-2
Look for related code in SequenceUtil class

Regards
Vikas

On Apr 20, 2012, at 3:17 PM, vivek mishra wrote:

> Hi All,
>
>
> I have created some demo form in ofbiz and as of now ID is geneated
> automatically, first being 10000. But I want to generate IDs starting from
> some other number with a gap of 1 in each ID. How can it be done in OFBiz?
>
> Thanks & regards,
> Vivek

Reply | Threaded
Open this post in threaded view
|

Re: ID Generation in OFBiz

Jacques Le Roux
Administrator
In reply to this post by vivek.mi
Have a look at
https://demo-trunk.ofbiz.apache.org/webtools/control/FindGeneric?entityName=SequenceValueItem&find=true&VIEW_SIZE=50&VIEW_INDEX=0
And SequenceUtil.SequenceBank() which is the root of all that from a code POV

Jacques

From: "vivek mishra" <[hidden email]>

> Hi All,
>
>
> I have created some demo form in ofbiz and as of now ID is geneated
> automatically, first being 10000. But I want to generate IDs starting from
> some other number with a gap of 1 in each ID. How can it be done in OFBiz?
>
> Thanks & regards,
> Vivek
>
Reply | Threaded
Open this post in threaded view
|

Re: ID Generation in OFBiz

vivek.mi
In reply to this post by Vikas Mayur-2
Thanks Vikas. It's working fine.



On Fri, Apr 20, 2012 at 3:35 PM, Vikas Mayur <[hidden email]> wrote:

> Look for related code in SequenceUtil class
>
> Regards
> Vikas
>
> On Apr 20, 2012, at 3:17 PM, vivek mishra wrote:
>
> > Hi All,
> >
> >
> > I have created some demo form in ofbiz and as of now ID is geneated
> > automatically, first being 10000. But I want to generate IDs starting
> from
> > some other number with a gap of 1 in each ID. How can it be done in
> OFBiz?
> >
> > Thanks & regards,
> > Vivek
>
>
Vivek Mishra