Hi all, I am using QMF 2 and I currently have a schema where i have 2 objects defined, a parent and child as follows.
<class name="ParentComponent"> <property name="parentId" type="int32" access="RC" index="y"/> <property name="parentTypeId" type="int32" access="RC" index="y"/> <property name="Name" type="lstr" access="RO"/> <statistic name="state" type="sstr" desc="Operational state"/> <method name="create_child" desc="Create child object"> <arg name="childId" dir="I" type="int32"/> <arg name="childRef" dir="O" type="objId"/> </method> </class> <class name="ChildComponent"> <property name="ParentRef" type="objId" references="ParentComponent" access= "RC" index="y" parentRef="y"/> <property name="childId" type="int32" access="RC" index="y"/> <property name="Name" type="lstr" access="RO"/> <statistic name="state" type="sstr" desc="Operational state"/> <method name="delete"/> </class> It successfully generates the necessary managed object files i.e. ParentComponent.h (.cpp) etc. But when I go to run the create_child method it returns: outMap contains status=2 and statusText="UnknownMethod". Why is it an unknown method? Also. in doing some more investigation it appears that in QMF, the object model to support any relationship defined in the schema must be built manually on top of the generated classes i.e. there is no inherent support for this. Is this true? Also, if I am using the Python console classes to access the raw managed objects, it appears that when I query the parent class I would not see the child class. Is this true? Any help is appreciated. Thanks.
