Relation

The Relation element defines a BA diagram relation.

Table 1. Relation element attributes
Attribute Options
name Defines the type of relation. There can be multiple relations of the type defined by name in BA diagram. The name must be unique in both item and relation definition.
srcProperty

Defines the source field while creating the query in application generation. The value of this property is the name of the dynamic property which holds source field. This dynamic property must be associated with relation through the dynamicProperty attribute.

dstProperty

Similar to srcProperty it defines the destination field.

dynamicProperties List of dynamic propertiesthat apply to the item node.

Syntax

<BusinessApplication>
  <DynamicProperties> dynamic property list </DynamicProperties>
  <Items> 
    <Item> </Item>
    <Relation> </Relation>
  </Items>
</BusinessApplication>

Example

  <Items>
    <Item name="Program" label="New Program" inherits="Program" extension="4prg"
     icon="bullet_class"/>
    <Item name="Form" label="New CRUD Form" inherits="Module" extension="4fdm"
     icon="document_4fdm" dynamicProperties="quickPrint;quickPreview;quickPDF;
     quickHTML;quickXLS;quickRTF;canExport" />
    <Item name="Zoom" label="New Zoom Form" inherits="Zoom" extension="4fdz"
     icon="document_4fdz" />
    <Item name="ReportData" label="New Report Data" inherits="BusinessRecord"
     extension="4rd" icon="document_4rd_sql" />
    <Relation name="Relation" srcProperty="srcField" dstProperty="dstField"
       dynamicProperties="action;dstField;srcField;openMode"/>
    <Relation name="ReportRelation" srcProperty="srcField"
       dstProperty="dstField"
       dynamicProperties="dstField;srcField;reportPath"/>
  </Items>