Hi Arijit,

Thanks for your suggestion. :)

I had tried this out and it works. However, my requirement goes a 
little bit further, and this is where I'm stuck :(

I want that the decision to use number sequence codeA or codeB is set 
in the "Parameters" form. Now, this form allows to define only one 
number sequence code for any one EDT. How can I dupe the system into 
accepting 2 codes for one EDT, and then use the value of the checkbox 
to decide which one is to be used?

Pls help! 

Thanks,
Satish

--- In Axapta-Knowledge-Village@yahoogroups.com, "Arijit Basu" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Satish,
>   Have a look at the *NumberSeq* Class {newGetNum
(),newGetNumFromCode()}
> methods. Now depending on the value of the checkbox, you can use the
> newGetNumFromCode('Code A or Code B'). Then use the num() to 
populate the
> valus of the new number :)
> Hope it helps
> Cheers
> 
> On 1/6/07, Satish <[EMAIL PROTECTED]> wrote:
> >
> >   Hi All,
> >
> > I'm trying to figure out how i can generate different number 
sequences
> > for a field based on a parameter set by the user. For e.g. if a
> > checkbox is selected by the user, i need to use Number Sequence 
code A,
> > else i will use Number Sequence code B to generate the numbering 
for a
> > field.
> >
> > I've seen the NumberSequenceGroups form, but am not able to 
understand
> > how it works. Can someone explain?
> >
> > Has anyone used any other way to decide at run-time the number 
sequence
> > code to use?
> >
> > Thanks in anticipation.
> >
> > Regards,
> > Satish
> >
> > 
> >
> 
> 
> 
> -- 
> 
> 
> Arijit Basu
> 
> 
> [Non-text portions of this message have been removed]
>


Reply via email to