Skip to Content
author's profile photo Former Member
Former Member

Model dependency


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.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2004 at 08:11 AM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.