cancel
Showing results for 
Search instead for 
Did you mean: 

Getting another context node value in the get_current() method of another context node

Former Member
0 Kudos

Hi all,

              I am getting one different issue. I have one viewset, which contain default view( say 'A' and it contains only one context node) and another view( say 'B' and it contains only one context node). In one scenario I click the hyper link , which enables this viewset and display the details in the screen on Web UI. I am getting values from do_prepare_output() method of 'B'( in do_prepare_output of viewset, we are binding 'B' with viewarea). and with one 'OK' button on the screen. Once I click 'OK' button then I get the same hyperlink screen. If I click that hyper link again then I am getting problem in the DO_INIT_CONTEXT of view 'A'(default view). In this method I am getting the context node details of 'B' context node.  Because of this I am getting below dump. Because here we are setting value to one attribute(ZATTR) but since we are getting 'B' context node attributes, it is giving dump. Below is the statement in the DO_INIT_CONTEXT method of 'A' .

lr_ent = me->typed_context->contextnodeB->collection_wrapper->get_current().

I checked until collection wrapper in the debugging, it still points to the current collection only( i.e 'A' only).But when I opened collection_ref after collection_wrapper and  then current entity then surprisingly I noticed the B's contexnode class and its attributes instead of the current('A').

Below are the only methods redefined in both 'A' and  'B' view

DO_INIT_CONTEXT(), DO_PREPARE_OUTPUT(),DO_VALIDATE_INPUT(),IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION() and one event handler.

Below is the dump error.

500 SAP Internal Server Error :

ERROR : Entry Parameter of method CL_BSP_WD_VALUE_NODE->SET_PROPERTY contains value 'ZZATTR', which is not allowed (termination    :RABIX_STATE).

Your help is highly appreciated.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This I got it.

Thanks,

Answers (0)