Hi Arijit, It works! Thanks a lot for your help :)
Regards, Satish --- In Axapta-Knowledge-Village@yahoogroups.com, "Arijit Basu" <[EMAIL PROTECTED]> wrote: > > Hi Satish, > Glad to know it worked. However AX is very clever ;-) and cannot be duped > easily (Its called TwC in DAX 4). > Just a passing thot however: > Create a Parent EDT (PARENT) and 2 Child EDT's (CHILD1 & CHILD2). Both these > CHILD should Extend the Parent :). > Now U have 2 EDT's and Can create 2 numbersequence in the Parameters form ( > How to create is on my BLOG). > Now in the Form/Table, you should have the field with the parent EDT. Jus > do some R & D. Maybe it will work. I havent tried it myself.I may however be > wrong. In case it helps , please lemme know :) > Cheers > > > On 1/8/07, Satish <[EMAIL PROTECTED]> wrote: > > > > 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<Axapta-Knowledge- Village%40yahoogroups.com>, > > "Arijit Basu" > > <arijit.basu@> 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 <satishdalal@> 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] > > > > > > > > > > > > > -- > > > Arijit Basu > > > [Non-text portions of this message have been removed] >