cancel
Showing results for 
Search instead for 
Did you mean: 

reading Dynamic Context nodes

Former Member
0 Kudos

hi ,

I have created dynamic context nodes on click of a single button ( ADD ) and I have binded it with the dynamic dropdown by indexes .

I want to read the context nodes for every single value selected from the dynamic dropdowns , in some other method (save ) in the same view .

How can I read the dynamic nodes in different method ? Any pointers in this regard .

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Initially when ever you create a dynamic node, move it to the global variable later you can access it.

Now in the SAVE button you can use this global context node refernce and do the processing.

In one method I created the node - 
  IF lr_node IS BOUND.
    wd_comp_controller->lr_node = lr_node.    "Global variable
  ENDIF.                                 "if lr_node is bound.

Aslo copy the table structure you crreated dynamically to global variable for later reference.

On SAVE  - 
  FIELD-SYMBOLS :
    <lt_table>        TYPE STANDARD TABLE . 

    CALL METHOD wd_comp_controller->lr_node->get_static_attributes_table
      IMPORTING
        table = <lt_table>.        "dynamic table

Like wise you can get the data from this dynamic node.

Refer this thread for help -

Regards,

Lekha.

Answers (0)