mql

Is there any Mql command to print the connection between two admin objects?


In Enovia Mql, if we want to print the details of a connection between a person and its company object what is the command. For Ex: Business objects can be explored using "Expand", similarly what is the way for Admin Objects?


Solution

  • I think we need some clarification on question as when you talk about "connection between a person and its company object" that means you are talking about business objects. But for admin objects query is different. I will try to answer both the questions.

    A. Admin object query

    print person PERSONNAME;
    

    B. Business object information: as you need all connection information below query will help you.

    expand bus Person PERSONNAME - type Company select rel id attribute.value;
    

    as we have mentioned "type Company" the expand will only consider connected Company type of objects.

    "select rel" clause selects information from relationships. You can add any selectable for relationship in above query.

    also for more information on expand you can use following query in mql and check expand bus section.

    help bus;