cancel
Showing results for 
Search instead for 
Did you mean: 

Model dependency

Former Member
0 Kudos

Hi,

Please let me know is there any way we can can set the dependencies between two models ?

Let us say i have a Model "M1" with 2 modelClasses "MC1" and "MC2".Another model "M2" with 2 modelClasses "MC21" and "MC22".(In the same project)

Is there any way to set the dependecy between these two models so that M1.MC1 is related to M2.MC21.

Regards

AnilKumar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello AnilKumar,

Unfortunately this is currently not possible (unless you are using the Configuration Model), other Models do not support this.

In our opinion, this feature is not too critical, as you can model relations in the context by using SupplyFunctions. You can have a ModelProperty which is in effect a foreign key pointing to the modelClass in the other Model. You would then need a Query in the other model to be able to fetch the related instance. This Query is called by the SupplyFunction and passed the foreign key. The result is bound to the current Context ModelNode.

Hope that helps!

Best regards,

Karin