Hello,
I used Composer to create a custom type ( let's call it "cType" ) thats inherits from dm_document.
I also created a custom relationship ( let's call it cRelation ) between two cType document, from master to child.
I use DFS in an application, and I can create, checkout, [...] and checkin cType document.
But I have to create a cRelation when I invoke the checkin.
****
DataObject dataO = new DataObject(masterIdentity);
dataO.Relationships =
null;
ObjectRelationship objectRelationship = new ObjectRelationship(); objectRelationship.Name =
"cRelation";
objectRelationship.Target =
new DataObject(childIdentity);
objectRelationship.TargetRole =
Relationship.ROLE_CHILD;
dataO.Relationships.Add(objectRelationship)
****
When I run the application and make a checkin, I have no error.
The checkin seems to work fine (version OK, content OK,..)
But, no relationship exists O_o
I tried adding a RelationshipProfile to the checkin operationOptions
****
RelationshipProfile
relationProfile = new RelationshipProfile();relationProfile.ResultDataMode =
ResultDataMode.REFERENCE;relationProfile.TargetRoleFilter =
TargetRoleFilter.ANY;relationProfile.NameFilter =
RelationshipNameFilter.ANY;relationProfile.DepthFilter =
DepthFilter.UNLIMITED;
****
That doesn't change anything.
Could someone help me please ?