This question is locked. New answers and comments are not allowed.
Hi
I am using the disconnected API ObjectContainer over WCF and am encountering issues with attaching reference data objects that are persisted by OA to other OA-managed objects when working via an ObjectContainer. I wonder if someone can advise.
A sample scenario would be where you have a Person object which I am creating, to this I add a new Address object. The address object has a Country field to which I attach a Country object which is an OA-managed class that i have requested within a list from the server (have tried via Container, ChangeSet or straight list from a Scope on the server). Problems arise when I try to commit the changes to the Container (examples of errors included "NotImplementYet: GetReferencedObject: SCO", "Object is already Detached"), or if I send the new object back to the server to be added via a Scope then the Scope does not recognise the Country object as an existing object and tries to recreate it leading to duplicate key errors.
What would be the best way to handling readonly reference data objects on a disconnected API client? FOr example I do not want these items locked but I need the container i am using on the client to know about them so I can add them to new or existing business objects.
Cheers
James
I am using the disconnected API ObjectContainer over WCF and am encountering issues with attaching reference data objects that are persisted by OA to other OA-managed objects when working via an ObjectContainer. I wonder if someone can advise.
A sample scenario would be where you have a Person object which I am creating, to this I add a new Address object. The address object has a Country field to which I attach a Country object which is an OA-managed class that i have requested within a list from the server (have tried via Container, ChangeSet or straight list from a Scope on the server). Problems arise when I try to commit the changes to the Container (examples of errors included "NotImplementYet: GetReferencedObject: SCO", "Object is already Detached"), or if I send the new object back to the server to be added via a Scope then the Scope does not recognise the Country object as an existing object and tries to recreate it leading to duplicate key errors.
What would be the best way to handling readonly reference data objects on a disconnected API client? FOr example I do not want these items locked but I need the container i am using on the client to know about them so I can add them to new or existing business objects.
Cheers
James