How to use CopyDataFrom to add a new record?


Author
Message
Aaron Young
Aaron Young
StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)StrataFrame User (435 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Hi,



I am trying to use the CopyDataFrom method to copy the contents of one BO into an empty second BO and to then assign new primary keys to the second BO so that I can add them as new records. However, when I do this and save, it overwrites the original records with the new primary keys and no new records are added.



I think I am missing something to get the records in the second BO added instead of updated.



Is this the best way to take a record and duplicate it? If so, have I missed something?



Thanks in advance,



Aaron

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search