Skip to Content

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

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,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on May 18, 2015 at 12:52 AM

    This I got it.

    Thanks,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.