cancel
Showing results for 
Search instead for 
Did you mean: 

How to input multiple records in tables in web dynpro

Former Member
0 Kudos

Hi

In web dynpro table I am able to input data in first row only. How to input data in other rows.

Thanks,

Saurabh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I got solution through some other medium .

Former Member
0 Kudos

hi, Saurabh...

From your description, I think, the "Input Row" which you described is just "Filter", not the traditional Input-filed.If i am wrong, pls point out...

However, if you want to make the table's row ready for input, you should set "Input field" to the table'column's cell editor...

Meanwhile, if you want to add one complete NEW row ready for input, you should make use of the context node bound to the table.maybe use create element to the context node...

Hope it can help you a little.

Best wishes.

Former Member
0 Kudos

Hi

can you explain explain it elaborately , i am not getting what you hae explained . I have to present the web dynpro table to user where user will input some data. I am able to input data in first row only.

Thanks,

saurabh

Former Member
0 Kudos

Hi ,

To be able to input data , you will have to add elements to the node bound to the table.

May be in the begining itself , you can add around say 10 elements to the node so that u get 10 rows in table.

also you can provide a button (say add) , on click of which you can add a new row (i.e a new element to the node).

Thanks,

aditya.

Former Member
0 Kudos

hi, okay..

I summarize in 3 aspects:

1.You want make the Table row play like "Input field"

The solution is :

In the table column, you set the cell editor as "Input field"

2.You want to use the FILTER function

The solution is :

set Filter Value property and realize "OnFilter" event...

3.You want to add Ready for Input rows to your table

The solution is :

You should make use of the Context Node bound to the table. The EXAMPLE coding:


  DATA lo_nd_flights TYPE REF TO if_wd_context_node.
  DATA lo_el_flights TYPE REF TO if_wd_context_element.

* append the element with initial attribute value
  lo_nd_flights = wd_context->get_child_node( name = wd_this->wdctx_flights ).
  lo_el_flights = lo_nd_flights->CREATE_ELEMENT( ).
* bind the newly created element
  lo_nd_flights->BIND_ELEMENT( new_item             = lo_el_flights
                               set_initial_elements = abap_false ).

4.You want to set N rows ready for input initially

The solution is :

Set the Row visible property..

Best wishes.

Former Member
0 Kudos

Hi

What I want is that simply i am using table component of web dynpro and i want as I execute it I should able to enter (input) data in as many as no. of rows i want.

Thanks