Forum Discussion
Former_Member
9 years agoAccelerator III
Hi Yoann,
There is two types of instances in my datamodel, relative and absolute. The relative instance is the link between the part and its father product, the absolute instance is the link between the part and the main referential (root).
To create the relative instance I use the standard behavior of Aras as I just have to add a part to an assembly. A server event on the part instance will create the absolute instance. It needs to identify if the father assembly is connected directly or not to the root, return an error if no root or if it is not connected to a root, open a search dialog if several roots exists, create the absolute instance once all is ok.
Did you ever succeed to use getParentItem() method? I cannot get it working on my side.
I could workaround with getRelationships but it never returns me the right itemtype, I know I am missing something.
Best regards,
Camille