Quantcast
Viewing latest article 2
Browse Latest Browse All 3

Re: Does anyone have a code sample to create a hierarchical items list?

Hello Rei,

 

you need to model the hierarchy using an association valuation. This is the example from the online help for the valuation keyword:

 

businessobject BusinessObject1 {

  [AlternativeKey] element ID:ID;

 

  node ChildNode[0,n] {

    element ID:ID;

    element ParentID:ID;

    association Children [0,n] to ChildNode valuation (ParentID == ID);

  }

}

 

The valuation keyword allows you to define an association with cardinality [0,n] on the ChildNode of BusinessObject1. The association Children is calculated by the system based on the condition on the ID and ParentID elements of ChildNode.


Regards

-- Reinhold


Viewing latest article 2
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>