This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Method running on relationship type

handpuppet - Wednesday, April 6, 2016 1:42 PM:

I have a RelationshipType on an ItemType.  I am looking to run a method on an event on the RelationshipType.  Would the method be added to the top level ItemType or the RelationshipType itself?  I am trying to get an event to run on when the form populates or loads.



edmoreirabr - Thursday, April 7, 2016 2:22 PM:

You need to understand some details. When you create a new relationship, an ItemType  is created and flagged as IS_RELATIONSHIP. This item type has 2 very important properties (SOURCE_ID and RELATED_ID) These properties are responsible to keep the connection between the parent and child. Depends on your business logic, you may run the method on this item type. When the form load you interact with values from SOURCE, RELATED, RELATIONSHIP properties and so on.

Hope this helps. 

Edson