Skip to Content
0
Dec 07, 2011 at 04:05 PM

How to access mixed node

525 Views

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.

lr_mixed->if_bol_bo_property_access~get_property_as_value(

exporting

iv_attr_name = 'TDID_SELECT' "#EC NOTEXT

importing

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