cancel
Showing results for 
Search instead for 
Did you mean: 

wdctx_calculator unknown

Former Member
0 Kudos

Hello Friends,

I get the message wdctx_calculator unknown with the below coding.

What did I forget? Please help

method SET_VALUE_HELP_LISTENER .
wd_this->value_help_listener = listener.
 
****Check the data type of the source field - it must be a date data type.
  IF wd_this->value_help_listener->f4_attribute_info-rtti->type_kind NE cl_abap_typedescr=>typekind_numeric.
  ENDIF.
 
  DATA lo_nd_calculator TYPE REF TO if_wd_context_node.
  DATA lo_el_calculator TYPE REF TO if_wd_context_element.
  data dyn_node_info type ref to if_wd_context_node_info.
* navigate from <CONTEXT> to <CALCULATOR> via lead selection
  lo_nd_calculator = wd_context->get_child_node( name = wd_this->wdctx_calculator ).
  dyn_node_info = lo_nd_calculator->get_node_info( ).
  dyn_node_info->add_attribute( wd_this->value_help_listener->f4_attribute_info ).
 
endmethod.

Thx in advance for your efforts.

Regards

ertas

Edited by: Ilhan Ertas on May 13, 2009 4:11 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

how is the node called

wdctx_calculator ?

calculator?

wdctx ??????????????????

arjun_thakur
Active Contributor
0 Kudos

Hi,

WDCTX_<node name> is the syntax for every node you create in the context of a controller. This code is generated automatically with the help of code wizard.

Regards

Arjun

Answers (1)

Answers (1)

arjun_thakur
Active Contributor
0 Kudos

Hi Ertas,

Just make sure that the spelling of the nade name is correctlt used in the code. According to the code calculator is the node name. Go to the Context tab and check if it is spelt properly.

Regards

Arjun