3 Replies Latest reply on Dec 26, 2012 8:57 AM by Roger Palmen

    Indentifying reference type between Parent and Child elements

    Roger Palmen

      Dear all,

       

      During some programming, i ran into the following issue. I want to check what the relation(s) are between two elements. To try and achieve that, i use the following code:

       
      AFNamedCollectionList afRefTypes;
      afRefTypes = childElement.GetReferenceTypes(parentElement);
      

      (note that the code formatter drops the <> from the line: AFNamedCollectionList<AFReferenceType> afRefTypes;

       

       But unfortunately, the returned collection is empty while the two elements do have a Parent-Child relationship. Any hints?