RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-28 Thread Brandon George
ge-Village@yahoogroups.comSubject: RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal() The ttsabort will not execute after the throw error. But after a through reading of the Axapta Transaction documentation, you will discover the true intent of the original code. This is a nested tt

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Brandon George
Ok, So here is what I did... protected void insertJournal(){; ttsbegin; numberSeq = this.allocateNumAndVoucher(); [number, voucher] = this.getNumAndVoucher(); if (this.updateNow()) { this.postUpdate();

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Amit Jain
why dont you try try catch block and handle ttsbegin and ttscommit accordinglySøren Ager [EMAIL PROTECTED] wrote: Den 27. september 2005 15:26 skrev Brandon George: protected void insertJournal() {; ttsbegin; numberSeq = this.allocateNumAndVoucher(); [number, voucher] = this.getNumAndVoucher();

Re: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Subrahmanyam, Mamidi
Hello Brandon, I believe this should solve it..You can browse similar code on AOT\classedd.. ttsbegin; numberSeq = this.allocateNumAndVoucher(); [number, voucher] = this.getNumAndVoucher(); if (this.updateNow()) { this.postUpdate();

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Brandon George
-Knowledge-Village] SalesFormLetter.insertJournal() Hello Brandon, I believe this should solve it..You can browse similar code on AOT\classedd.. ttsbegin; numberSeq = this.allocateNumAndVoucher(); [number, voucher] = this.getNumAndVoucher(); if (this.updateNow()) { this.postUpdate

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread John Lindsay
. From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brandon George Sent: Tuesday, September 27, 2005 9:37 AM To: Axapta-Knowledge-Village@yahoogroups.com Subject: RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal() Sabbu, I believe you are right

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Subrahmanyam, Mamidi
-Village@yahoogroups.comSubject: Re: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal() Hello Brandon, I believe this should solve it..You can browse similar code on AOT\classedd.. ttsbegin; numberSeq = this.allocateNumAndVoucher(); [number, voucher] = this.getNumAndVoucher

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Subrahmanyam, Mamidi
] On Behalf Of Brandon GeorgeSent: Tuesday, September 27, 2005 9:37 AMTo: Axapta-Knowledge-Village@yahoogroups.comSubject: RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal() Sabbu, I believe you are right... that is the best approach... From: Axapta-Knowledge-Village@yahoogroups.com

RE: [Axapta-Knowledge-Village] SalesFormLetter.insertJournal()

2005-09-27 Thread Sonny Wibawa Adi
Hi, Subbu Brandon, I think the code in SalesFormLetter.insertJournal() is correct. There is nothing wrong with the code. No matter the level or depth difference between ttsbegin and ttscommit location, Axapta will simply count the level mannually. If the total of begin transaction and total of