Virtual Associations are used to extend the Core BO Association tree with new UI specific associations. Core BO Associations can be extended in two different ways:
- By Creating Virtual Associations - Virtual Associations are entirely new associations created by selecting source and target BO fields.
- By Creating Reference Associations - Reference Associations are created on existing associations by providing target specialization fields overs them. It can be said that they are wrappers over existing associations with only added feature of Target Specialization. Through Target Specialization, one can provide filter parameters over existing associations.
Virtual Associations icon comes on BOBrowser toolbar(screenshot below). It is enabled only when a component is created and its UseUIController flag is true.
Creating a Virtual Association.
- Set the UseUIController flag to True. Virtual Associations cannot be added if this flag is false.
- Open/goto BOBrowser.
- Select Namespace and BOName in BOBrowser.
- Click on virtual association icon. It opens an editor through which Virtual and Reference Associations can be configured.
- To create Virtual Associations, Virtual Association Radio button has to be selected. When the modeller opens, this radio button is selected by default.
- Fill the Target BOBrowser with namespace and BO details.
- Select a key from source and a key from target, provide name for association. Source key can be an element within selected BO or any element withing existing associations.
- Select parameter from Target BOBrowser using which Target Specialization has to be created. Target Specialization is used to provide filter parameters for created Virtual Associations. Its possible to select either a Constant or a Placeholder value as Target Specialization parameter.
- After providing all these details, click on Create button. This creates Virtual Association.
- The newly created VirtualAssociation is displayed in BOBrowser tree with its name coming within square braces. See the screenshot below:
- The newly created VirtualAssociation can be now used for modelling just like a normal association.
Creating a Reference Association:
- Open Virtual Association Modeller and select Reference Association radio button.
- Select an Association on which Reference Association has to be created and click on Bind button. Referred Association name is shown in UI then.
- Select Target Specialization parameters from the BOBrowser and press on Move button.
- Give name for Reference Association.
- Click on Create. The created reference association is shown is BOBrowser tree and can be used like any other Core BOAssociation.
To Delete a Virtual Association/Reference Association.
- Select the Virtual Association/Reference Association that needs to be deleted.
- Right click and select Delete from the Context menu.
Display a Virtual Association/Reference Association.
- Select the association that you want to check.
- Right click and select Display from the context menu.
- This opens the modelled association in Display only mode and allows users to check on which nodes the association is created on.
Edit a Virtual Association/Reference Association.* Select the association that you want to check.
- Right click and select Edit from the context menu.
- This opens the modelled association in Edit mode. Do the modifications and press the Edit button.
Virtual Association in SADL Query
- VirtualAssociations modelled in BOBrowser are reflected in SADL Query as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.