cancel
Showing results for 
Search instead for 
Did you mean: 

Read table values

Former Member
0 Kudos

Hi,

I have a table UI which contains value . Now I want to fetch the values that are contained in table . How to do it /

Please let me know.Thanks in advance.

Rgds

Hitesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi ,

U can do it using get_static_attributes_table .

Read the node which is binded to the table and apply this method :


   DATA lo_nd_cn_table TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_table TYPE REF TO if_wd_context_element.
    DATA ls_cn_table TYPE wd_this->element_cn_table.
DATA it_table  TYPE wd_this->elements_cn_table.
*   navigate from <CONTEXT> to <CN_TABLE> via lead selection
    lo_nd_cn_table = wd_context->get_child_node( name = wd_this->wdctx_cn_table ).

lo_nd_cn_table->get_static_attributes_table( IMPORTING table = lt_table). 

Regards,

amit

Former Member
0 Kudos

also tell me how to bind a internal table to the context node

2 make the input field editable

Former Member
0 Kudos

use bind_table


  DATA lo_nd_cn_organisation TYPE REF TO if_wd_context_node.

*   navigate from <CONTEXT> to <CN_ORGANISATION> via lead selection
  lo_nd_cn_organisation = wd_context->get_child_node(
  name = wd_this->wdctx_cn_organisation ).


  lo_nd_cn_organisation->bind_table( it_org_type ).

Where it_org_type is ur internal table

it shud help

Former Member
0 Kudos

HI,

Instead of Text View inside your table column, use Input field. That way your table will become editable.

For binding table with internal table , use: bind_table of if_wd_context_node.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Use get_static_attributes_table method of if_wd_context_node.