Overview
/*<![CDATA[*/ div.rbtoc1770892094094 {padding: 0px;} div.rbtoc1770892094094 ul {list-style: disc;margin-left: 0px;} div.rbtoc1770892094094 li {margin-left: 0px;padding-left: 0px;} /*]]>*/ Overview Prerequisites Set Variable Cardinality Step1: Create Dependent Property with Data Type Reference Step 2: Create Condition Property with Data Type Integer Count Step 3: Assign Dependent Reference Property and Condition Integer Count Property to the Same Class Step 4: Set Condition of Dependent Property Set Fixed Cardinality
Prerequisites
Cardinality can be set only for dependent properties with data type "REFERENCE" and condition properties with data type INTEGER_COUNT.
Set Variable Cardinality
Step1: Create Dependent Property with Data Type Reference
Under menu entry Property, select function Create Property. The system opens the Create new property dialog.
Fill in the (mandatory) fields, select "Reference" as data type of new property, select the referenced block, select type of property "dependent".
Press button Save in order to save the CR for new dependent reference property.
Step 2: Create Condition Property with Data Type Integer Count
Under menu entry Property, select function Create Property. The system opens the Create new property dialog.
Fill in the (mandatory) fields, select "Integer (count)" as data type of new property, select type of property "condition".
Press button Save in order to save the CR for new condition property with data type Integer (count).
Step 3: Assign Dependent Reference Property and Condition Integer Count Property to the Same Class
Under menu entry Block, select function Assign Block Reference. The system opens the hierarchical structure of blocks. Select the block to which you want to assign the dependent reference property and in the next dialog, select the reference property. In the Add existent property dialog, fill in reason field and press save. The CR will be saved.
Under menu entry Block, select function Assign Property. The system opens the hierarchical structure of blocks. Select the block to which you want to assign the condition integer count property (Attention: in order to create a cardinality structure, both dependent and condition property must be used in the same block!!) and in the next dialog, select the condition integer count property. In the Add existent property dialog, fill in reason field and press save. The CR will be saved.
Step 4: Set Condition of Dependent Property
Under menu entry property, select your dependent Property and press button Assign/ Assign condition.
In the next dialog, system displays only properties of type condition. Search for your condition Property and select it. This conditional property has role of controlling property in cardinality.
In dialog Assign condition to dependent property, enter a reason in the Reason field and press Save.
Set Fixed Cardinality
If user wants to set fixed cardinality for a used property, the following preconditions must be fulfilled:
-
The property for which he wants to set fixed cardinality is of type dependent and data type reference and depends on a conditional property of data type INTEGER_COUNT;
-
A CVA (Class value assignment) with desired fixed value is created for conditional property;
-
Both depending and condition properties must be assigned (used) together in classes.
Thus, user must first create a structure with variable cardinality as described under Chapter 3.
As next step, select menu entry Value, function Create Class value assignment (CVA).
System will display the hierarchical structure or elements. In tree, select the property for which you want to create the CVA (in our case the condition property, which is the controlling property in cardinality).
In the CVA new dialog, enter the desired value in field value, enter a reason and press save.