chuckle - true true - that was meant to be a rough example of how to get an 
error the original poster was experiencing. :)

--- On Thu, 10/9/08, Murat Bal <[EMAIL PROTECTED]> wrote:

From: Murat Bal <[EMAIL PROTECTED]>
Subject: RE: [development-axapta] Re:CustTable Super()
To: development-axapta@yahoogroups.com
Date: Thursday, October 9, 2008, 11:30 PM






Hi;

You must writing Forupdate and .update() for saving

example

Select forupdate CusttableA where recid= 1;

Select forupdate Custtableb where recid= 1;

.

CusttableA.update( )

Custtableb.update( )

From: development- [EMAIL PROTECTED] ps.com
[mailto:development- [EMAIL PROTECTED] ps.com] On Behalf Of Tony Zeigler
Sent: Thursday, October 09, 2008 5:03 PM
To: development- [EMAIL PROTECTED] ps.com
Subject: Re: [development- axapta] Re:CustTable Super()

He said it occurs in the super() - which would make sense if he had confused
the system about a prior change.

For instance, if his code elsewhere creates two copies of the CustTable row,
and modifies both before saving, then his second copy will blow up with that
error when he calls super.

For instance something along this line should do the job:
CustTable custtablea;
CustTable custtableb;
;
select custtablea where recid = 1;
select custtableb where recid = 1;
custtablea.name = "Changed";
custtableb.name = "ChangedAgain" ;
custtablea.save( );
custtableb.save( );

In this example I believe custtableb will blow up with his error when it
calls the super()...

Since the actual root cause of the error is outside the super() it can be a
pain in the arse to track these down....

--- On Wed, 10/8/08, Brandon Boman <brandon.boman@ wellpointsystems .com
<mailto:brandon. boman%40wellpoin tsystems. com> > wrote:

From: Brandon Boman <brandon.boman@ wellpointsystems .com
<mailto:brandon. boman%40wellpoin tsystems. com> >
Subject: [development- axapta] Re:CustTable Super()
To: development- [EMAIL PROTECTED] ps.com
<mailto:development -axapta%40yahoog roups.com> 
Date: Wednesday, October 8, 2008, 10:44 PM

Hi there

In which method does the error occur?

Brandon Boman

System Analyst / Developer

iSoft Technologies (Pty) Ltd

by WellPoint Systems Inc.

49 Sovereign Drive, Route 21 Corporate Park

Irene x30, South Africa

Phone +27 (12) 345-4750

Fax +27 (12) 345-4252

Email: brandon.boman@ wellpointsystems .com

www.wellpointsystem s.com <blocked::http://www.wellpoin tsystems. com/> 

[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]

 














      

[Non-text portions of this message have been removed]

Reply via email to