- /
- /
- /
Schema OBJECTDEF inheritance
OBJECTDEF inheritance is possible with the parent_objectdef attribute specified for at the definition start.
- an
objectdef
property is also needed for the hierarchy to work - the parent object is defined as
is_abstract=“true“
<protocol tbl="prt" copy_from="core.template_normal_transaction" is_abstract="true">
<objectdef>
<category>main.basic</category>
<sort_id>10</sort_id>
<is_inmaintbl>true</is_inmaintbl>
<data_source>relation</data_source>
<is_foreignkey>true</is_foreignkey>
<related_objectdef>core.objectdef</related_objectdef>
<name>
<en-US>Objectdef</en-US>
</name>
<name>
<de-DE>Objektdefinition</de-DE>
</name>
<name>
<bg-BG>Обект-дефиниция</bg-BG>
</name>
<is_obligatory>true</is_obligatory>
<is_readonly>true</is_readonly>
<index_code>od</index_code>
</objectdef>
Afterwards the inherited ODEFs get a parent_objectdef
property on the main definition..
note: the objectdef property defined in the parent class should not be redefined in the child elements.
<protocol_sale parent_objectdef="most.protocol">