Skip to Content
0
May 11, 2013 at 06:52 AM

Problem with get related entity of mixed node context node

640 Views

Hi,

In one of the tasks I have been required to output the data, which comes both from Product BOL-entity (model node) and from regular function (value node). In order to do that I defined a context node (CN) in component controller and in desired view and binded them. This CN is a mixed node, since it's based on model and value nodes at the same time.

I succeeded to fill-in this CN with the data, but I faced out with the problem at the step of data retrieving from the context node. After some debug I found out, that I get an casting exception in GET_attr_name( ) method (default wizard's implementation), when I'm trying to cast variable of CL_BSP_WD_MIXED_NODE to CL_CRM_BOL_ENTITY, in order to execute get_related_entity( ).

My question is how can I solve/avoid this problem and achieve the access to related entity of mixed node?

Thanks.