Skip to Content

How to access mixed node

Hi all,

I attached one new field 'TDID_SELECT' with GET and SET Methods on BTText Entity in my View.

Question is how can I access the field in my event handler?

The coding below doesn't work.

data: lr_collection type ref to if_bol_bo_col,

lr_context_node type ref to cl_bsp_wd_context_node,

lr_current type ref to if_bol_bo_property_access,

lr_mixed type ref to cl_bsp_wd_mixed_node,

lr_iterator type ref to if_bol_bo_col_iterator.

data: lv_tdid type tdid.

data: lv_sel_tdid type tdid.

lr_iterator = me->typed_context->bttext->collection_wrapper->get_iterator( ).

lr_mixed ?= lr_iterator->get_current( ).

check lr_mixed is bound.



iv_attr_name = 'TDID_SELECT' "#EC NOTEXT


ev_result = lv_sel_tdid ).

Edited by: juergen71 on Dec 7, 2011 5:05 PM

Edited by: juergen71 on Dec 7, 2011 5:06 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2011 at 06:57 PM

    what error/exception do you get?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member juergen baur


      Try With this piece of code

      DATA:  lr_mixed_node             TYPE REF TO cl_bsp_wd_mixed_node,
               lr_model_node TYPE REF TO if_bol_bo_property_access,
               lr_value_node TYPE REF TO if_bol_bo_property_access.
        IF iterator IS BOUND.
          current = iterator->get_current( ).
          current = collection_wrapper->get_current( ).
        lr_mixed_node ?= current.
        lr_model_node ?=  lr_mixed_node->if_bsp_wd_ext_property_access~get_model_node( ).

      ANd from lr_model_node entity you can read the attributes you want from model node.

      Similarly get value node using get_value_node method .

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.