Forum Discussion
Former_Member
9 years agoIdeator I
Instead of setting the properties directly, like this:
parentItem.setProperty(“id”,this.getProperty(“source_id”,””) ); thisItem.setProperty(“related_id”,item.getID());I created a relationship object, and set it's related item:
docRelationship.setRelatedItem(cadDocument); // here is the linkage to the related itemthen added the relationship to the parent item with:
part.addRelationship(docRelationship);I don't know if setting the ids directly is equal to using the relationship object, or if I am using it incorrectly. I was wondering the difference, if any.