Entering content frame

Procedure documentation Example 4: OBN with Relation Resolving Locate the document in its SAP Library structure

Use

Show object-based navigation with including relation resolving, based on the com.sap.portal.unification.OBNExamples PAR.

Sample Details:

Description

Clicking on author names opens TitlesIview representing all the titles of the author. The relation between OBNTestSysAlias.dbo.authors  and OBNTestSysAlias.dbo.titles  objects is accessed using  the relation-resolving algorithm.

Operation name

DragAndRelateOp

Source iView

DfltOpAuthors_iView

Target iView

Titles_iView

Procedure

...

       1.      Create an operation with the name DragAndRelateOp for the authors business object, and indicate ‘Yes’ for the relation resolving flag.

       2.      Attach the created operation to Titles_iView.

Operations and iViews may be attached to one another from either the Business Object Editor or the Object-Based Navigation Editor of a specific iView. In this case, however, since this iView does not appear in the Content Catalog, but is only accessible from the role of the user, the procedure is performed as follows, using the Object-Based Navigation Editor of the iView:

                            a.      In the Content Catalog tree, go to Portal Content ® OBNExamIViews ® OBNExamRoles ® OBNExamImplRole.

                            b.      From the context menu, choose Edit Object.

                            c.      In the editor expand the OBNImplIViews workset.

                            d.      Select Titles_iView and choose Edit at the bottom of the editor.

                            e.      In the editor drop-down list choose Object-Based Navigation to open the OBN Editor for this iView.

                              f.      In the Content Catalog, navigate to the desired operation as follows: Business Objects ® OBNTestSysAlias ® dbo ® authors ® DragAndRelateOp operation.

                            g.      From the context menu of the operation, choose Add Operation to iView.

                            h.      Save the iView changes.

       3.      Set the main object property of Titles_iView to OBNTestSysAlias.dbo.titles.

       4.      Ensure that there is a relation from OBNTestSysAlias.dbo.authors to OBNTestSysAlias.dbo.titles in the Relationships Editor.

       5.      Go to the Unification workset and add the following objects to the matrix area of the Relationship Editor:

ˇ        OBNTestSysAlias.dbo.authors (using  Add as source)

ˇ        OBNTestSysAlias.dbo. titleauthor (using  Add as target)

ˇ        OBNTestSysAlias.dbo. titleauthor (using  Add as source)

ˇ        OBNTestSysAlias.dbo.titles (using  Add as target)

       6.      Set relation between OBNTestSysAlias.dbo.authors to OBNTestSysAlias.dbo. titleauthor to be Alias_1.au_id=Alias_2.au_id where Alias_1 and Alias_2 are OBNTestSysAlias.dbo.authors and OBNTestSysAlias.dbo.titleauthor respectively.

       7.      Choose the Autocomplete button in order to generate and display automatic relations in the matrix.

       8.      Select the option to display all relations in the Display Relations area of the Relationships Editor

       9.      There is an automatic relation between OBNTestSysAlias.dbo.authors and OBNTestSysAlias.dbo.titles.

To activate these steps at runtime:

...

       1.      Go to the OBNSrcIViews workset.

       2.      Choose DfltOpAuthors_iView.

       3.      Choose any cell button.

       4.      Titles_iView represents records relevant for selected author.

Result

If the author with the last name Green is chosen, the following two titles should be shown by the Titles_iView: BU1032 and BU2075.

 

Leaving content frame