Hi Harry, Yes. And because of the additional fields Recid in each table, I was also able to enter same S.O.,same item and then the given linenum is also same as 1. Meaning axapta accepts the entry since the ultimate key being considers here is the recid which is always unique per record.
Thanks for your help. I now understand more how axapta works. Patrick --- In Axapta-Knowledge-Village@yahoogroups.com, "Harry Deshpande" <[EMAIL PROTECTED]> wrote: > > Hi > > > > Yes, you are correct. If my memory is correct then this behavior changed > in Ax 3.0, next line num was always the next number in Ax 2.5 > > > > Regards > > > > harry > > > > ________________________________ > > From: Axapta-Knowledge-Village@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of > chuapatrickd > Sent: 20 July 2006 10:38 > To: Axapta-Knowledge-Village@yahoogroups.com > Subject: [Axapta-Knowledge-Village] Re: LineNum > > > > Hi Harry,Hema, > > I've found the method next line num but still wonder when it is > called because I put a break point but it did not stop there. > > Anyway, I already discovered that the linenum afterall is not always > incremented as 1,2,3..etc. It really depend on where you inserted the > last record. > > For ex. if you already have 3 record with linenum of 1,2,3 and then > you position the cursor the second record. After you add the new > record, it will not get a linenum of 4, but instead it will be > somewhere between 2 and 3 (maybe say 2.5). > > If you again insert between this record, it will give 2.125, etc. > > I'm sharing this info, for the benefits for new developer in axapta. > > regards, > Patrick > > I've found > --- In Axapta-Knowledge-Village@yahoogroups.com > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> , "Harry Deshpande" > <harryd@> wrote: > > > > Hi > > > > > > > > There is a method somewhere that returns the next line num. check on > > salesline type > > > > > > > > Regards > > > > > > > > harry > > > > > > > > ________________________________ > > > > From: Axapta-Knowledge-Village@yahoogroups.com > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> > > [mailto:Axapta-Knowledge-Village@yahoogroups.com > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> ] On Behalf Of > > chuapatrickd > > Sent: 20 July 2006 09:32 > > To: Axapta-Knowledge-Village@yahoogroups.com > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> > > Subject: [Axapta-Knowledge-Village] Re: LineNum > > > > > > > > Hi Hema, > > > > Is this the only thing I should do ? I already specified the > counter > > fields as Linenum in my form. But when I tried to add record. the > > linenum is 1,-1 and -5 as shown below. > > > > ExportID S.O. Linenum Item > > > > EX006 SO-00002 1.000000000000 0192/B01/NATRL > > EX006 SO-00027 -1.000000000000 10002-00-0008 > > EX006 SO-00025 -.500000000000 0932/B07/NATRL > > > > regards, > > Patrick > > > > --- In Axapta-Knowledge-Village@yahoogroups.com > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> > > <mailto:Axapta-Knowledge-Village%40yahoogroups.com> , hemamalinis@ > > wrote: > > > > > > > > > Hi, > > > > > > In the SalesLine form, there is a property called counterfield in > > SalesLine > > > DataSource. There, u have to mention the field to be incremented. > > Here, > > > LineNum is given. So, it will be incremented automatically. i > think > > u get > > > my solution. > > > > > > regs, > > > Hema. S > > > > > > > > > > > > > > > > > > > > "chuapatrickd" > > > > > <chuapatrickd@> To: Axapta- > > [EMAIL PROTECTED] > <mailto:Knowledge-Village%40yahoogroups.com> > > <mailto:Knowledge-Village%40yahoogroups.com> > > > Sent by: > > cc: > > > > > [EMAIL PROTECTED] > > Subject: [Axapta-Knowledge-Village] > > LineNum > > > > > groups.com > > > > > > > > > > > > > > > 20/07/2006 12:35 > > PM > > > > > Please respond > > to > > > > > Axapta-Knowledge- > > Village > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > In SalesLine Table, there is a field Linenum which gets > incremented > > > each time you add a new item in the Sales order. I'm just > wondering > > how > > > this is automatically incremented. I want to simulate this routine > > > since I've added also a field linenum to my table. > > > > > > Regards, > > > Patrick > > > > > > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > [Non-text portions of this message have been removed] > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/kGEolB/TM --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/