cancel
Showing results for 
Search instead for 
Did you mean: 

From one entity to another (related) one

Former Member
0 Kudos

Hi experts,

i need to get the BUPA-entity. All I have is the BUAG-entity.

bupa_entity->get_related_entities( ) isn't working.

Any ideas?

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use method BuAgBuPaRel. it will return you BuilHeader entity.

lr_bupa_entity = lr_theBuagEntity->get_related_entity( 'BuAgBuPaRel' ).

Let me know in case of any issues.

Thanks

Sudhir Grover

Answers (2)

Answers (2)

0 Kudos

Hi Simobi ,

In the get_related_entities( ) method, you have to mention the relation name.

Regards,

Leon

Former Member
0 Kudos

have you tried the method get_parent() ? or get_root() on the entity?

Edited by: Ruben De Wasch on Feb 14, 2012 2:56 PM

Former Member
0 Kudos
lr_theBuagEntity = me->typed_context->buag->collection_wrapper->get_first( ).

Yes. Unfortunately the only methods i can call from

lr_theBuagEntity

are getter/setter-methods.

The typed_context returns only the buag-object.

Former Member
0 Kudos

Try

lr_theBuagEntityParent = me->typed_context->buag->PARENT_ENTITY.