Community mailing list archives

Independent Sequence No Generation for two fields having same class

ujwala harishchandra pawade
- 08/03/2015 07:13:39
Hi All,

Currently I am developing one module in which I want to generate unique sequence no. for two fields which belongs to the same class.
i.e. if field A is visible, sequence no should start from 001 and if field B is visible again sequence no should start from 001 and not 002.

I have tried with next_by_code() function but not able to get the proper result.

Can anyone tell me the solution for this.

Thanks a lot.

Freedom Matters Not The Cost !!