Yes the cascade updating is very usefull , i have found the x++
function which do it :

CCPrimaryKey::renamePrimaryKey (T, newItemId,fieldnum(InventTable,
ItemId));

but the matter is that i don't have to rename one primary key but all
the values of primary key of one table and moreover this i have to
use a sequencenumber.


--- In [email protected], "Agus Riyadi"
<[EMAIL PROTECTED]> wrote:
>
> Hi nicolas,
>
> Why don't you use the rename functionality from Axapta. You just
> right click on the primary key field in the form, select record
info
> and click the rename button.
> Fill in your new primary key and then it take a while for axapta
> to 'cascade' the rename to all related tables.
>
> Agus
>
> --- In development-
[EMAIL PROTECTED], "nicolas_dumont_toulouse"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have imported some data in Axapta but now i want to change the
> old
> > primary key wich are the old and too long items serial numbers by
a
> > auto-generated number.
> >
> > But i don't know how to do it because if i change the primary key
> in
> > inventTable i have to do it in
> > inventtablemodule,reqitemtable,inventitemlocation,routeversion ,
> etc...
> >
> > It is anyway to do this easier by x++ fot example ?
> >
> > Thanks
> >
> > PS:  Sorry for my bad english I'm french ;)
> >
>








SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to