Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8545

Re: How to add a table row in a table.Please help!

$
0
0

Hi Amit,

 

There are many threads available on SCN similar to your requirement.

 

To add an empty row initially, you need write logic in WDDOINIT( ) method of VIEW i.e

 

 

Sample:

DATA lt_material TYPE wd_this->Elements_material.

DATA lo_nd_material TYPE REF TO if_wd_context_node.

 

  lo_nd_material = wd_context->get_child_node( name = wd_this->wdctx_material ).


append initial line to lt_material.


lo_nd_material->bind_table( new_items = lt_material

  set_initial_elements = abap_true ).

 

Please refer the below document for add row & delete row functionality.

How to make table cells as editable / non-editable dynamically in Web Dynpro ABAP

 

Hope this helps you.

 

Regards,

Rama


Viewing all articles
Browse latest Browse all 8545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>