cancel
Showing results for 
Search instead for 
Did you mean: 

Hierarchial Extension and Find Form

Former Member
0 Kudos

Hi,

I want to display my custom BO in an OWL, using a Hierarchial Extension and a Find Form.

The source of my custom BO looks as follows (only the elementary fields are specified here):

businessobject ITCOBSGroup

{

  [AlternativeKey]

  element ITCOBSGroupID : ID;

  element ITCOBSGroupParentID : ID;

  element HasChildIndicator : Indicator;

  association ToChildEntry [0,n]  to ITCOBSGroup valuation (ITCOBSGroupParentID == ITCOBSGroupID);

  element ITCOBSGroupName : LANGUAGEINDEPENDENT_EXTENDED_Name;

}

In order to use a find form I created a custom query. In the next step I bound the query fields to my data model. And here is my problem:

Unlike the standard query my custom query yields not an association "ToChildEntry" that I could bind to the corresponding element ("ChildrenAssociation")of the Hierarchial Extension.

So I wonder how it is possible to use the Find Form and a Hierarchial Extension in the context of on OWL.

Thanks for your help and your answer in advance.

Markus

Accepted Solutions (0)

Answers (1)

Answers (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Markus,

What is the goal of adding the association to the Find form?

You have all fields of a single node in the hierarchy in the Root node of your BO.

You can add the reverse association "ToParentEntry" with the revers valuation expression.

This association is - of course - zero to one and should be able to be bound.

HTH,

    Horst

Former Member
0 Kudos

Hello Horst,

when the Hierarchial Extension is added, following structure is generated:

In my example as described above, I bound the ChildField to the HasChildIndicator and the ChildrenAssociation to the ToChildEntry association:

In order to use a find form, I have to create a custom query, in my example named "ITCOBSGroupQueryOWL":

In order to use the find functionality, the fields of the custom query have to be bound to the Data Model.

At this point, I am not sure what to bind to the Hierarchial Extension, even if I use a "ToParentEntry" as you proposed.

I think, the Hierarchial Extension needs a kind of association to be bound to the ChildrenAssociation oder to the ParentAssociation. Both are missing if I use a custom query.

A binding to the "ToParent" association as you proposed is not working and throws a dump.

Thanks for your help in advance -

Markus

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Markus,

The query will not be able to bind parameter of a 0-to-n association. This is simply not possible.

Second, I don't mean to use the "ToParent" assoziation.

You need to define a own association similar to "ToChildEntry" in your BO, but targeting the parent of the current child (simply rever the sequence in the validation clause).

This association is 0-to-1 and it shall be possible to use it in the query.

HTH,

   Horst