Den 18. november 2004 09:19 skrev Jens Strandberg:

> My thoughts exactly. It is the same approach that we use in our
> current legacy system (developed in-house), so I have kind of figured
> that this would be the way to go. 
>
> However, I was told that the "Rename" part is not available in any
> method, but is hidden inside Axapta. This "show stopper" is very
> effective... :-( 

Try something like this (NOT tested):

Cust=CustTable::find(RenameToAccNo,true);
Cust.doDelete();

Cust=CustTable::find(RenameFromAccNo,true);
Cust.Account=RenameToAccNo;
Cust.renamePrimaryKey();

Can't remember if you need to do a ".write()" after renaming - but try it
out and see what happens.


Hilsen
  S�ren





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to