cancel
Showing results for 
Search instead for 
Did you mean: 

debugging context nodes

Former Member
0 Kudos

Hi,

how can I see the values of the attribues of the context nodes on the debbuging mode?

Is it possible?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Sure it is possible..

all you have to do is find a point may be the WDDOMODIFY method where you call the following code to get all the attributes of the node. the code may look like

DATA lo_nd_source TYPE REF TO if_wd_context_node.
  DATA lo_el_source TYPE REF TO if_wd_context_element.
  DATA ls_source TYPE wd_this->element_source.
  DATA lt_source TYPE wd_this->elements_source.
*   navigate from <CONTEXT> to <SOURCE> via lead selection
  lo_nd_source = wd_context->get_child_node( name = wd_this->wdctx_source ).

  CALL METHOD lo_nd_source->get_static_attributes_table
    IMPORTING
      table = lt_source.

Here Source is the node and lt_source has all the attributes.

Set a break point at call method and after the method is executed you can check all the attributes for this node.

Regards,

Kinshuk

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks a lot.

Former Member
0 Kudos

Hi,

use the "Read Context" feature of WD Code Wizard in your event handler code. Put break points there and check out the values.

Thanks.

Former Member
0 Kudos

Hi ,

U can see the context values in the new debugger. U need to add the Web Dynpro tool in the new debugger.

With Regards,

Ranganathan.