Greetings,
I am trying to set up a business process flow for my organisation, this involves four entities.
The relationship between the entities are as follows:
Entity1>Entity2 (1:N)
Entity1>Entity3 (1:N)
Entity1>Entity4 (1:N)
The order of the the business process flow is as follows:
Entity1>Entity2>Entity3>Entity4
Here, Entity1 has a primary key that will be entered in the first stage. This primary key at the moment is being auto populated in Entity2 and the Entity2 is being related to Entity1 (as I have an option to set the relationship in the Entity2 (Stage2) ). Now the problem is that, when i move to the next stage stage3 pertaining to Entity3, it is not being related to Entity1 as I wanted(No option to set the relationship with Entity1). Thus the third stage creates an independant record in Entity3 with no relation to any other Entity, which is of no use to me. And the same problem goes with the next stage stage4.
Is there a way to relate the entities and auto populate the foriegn keys in Stage3 & Stage4 using javascript or plugin? I have tried a couple of things before writing this post, and nothing has worked so far. Any idea/ suggestion in much appreciated.
Thanks in advance.