Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8378

Re: Creating a parent child relationship

$
0
0

Hi Krishna,

 

Yes both the parent and child are of the same type.

 

But while creating the association type i need to reference the parentname of one entity to the name of another.

 

How do I write this association?

 

e.g : if I create

 

begin of item,

   name type string,

   description type string,

    parentname type string,

enf of item.

 

and create an association  like this for 1 : N cardinality  ?

 

  lo_association = model->create_association(
                                iv_association_name = 'item_items'
                                iv_left_type = 'item'
                                iv_right_type = 'item'
                                iv_right_card = cardinality_feed
                                iv_left_card = cardinality_entity ).

 

 

 

Regards,

Sumant


Viewing all articles
Browse latest Browse all 8378

Trending Articles



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