Hi all,
I am trying to build an interactive form in ABAP webdynpro, that includes the ability for the user to add rows to a table. The problem is that when the form is submitted, the context only receives 1 row of data when 2 or more were created. (Non-repeating form data is processed just fine; an object is created, but with only the first line of detail data.)
The context node cardinality is 1..n; I have an "add item" button on the form that adds a row for entering data. I can enter the second row (or more) of data, but when I submit the form, in the ABAP debugger the result of this statement:
lv_item_count = lo_nd_req_items1->get_element_count( ).
is always 1, even when multiple lines were entered in the form. ("req_items1" is the child node of the form_data node, and contains the attributes corresponding to the item structure)
In the LiveCycle Designer, the object reference for the repeating element (row) is
FORM_DATA.Form.ReqItems.REQ_ITEMS1.DATA
and the binding on DATA is
$record.REQ_ITEMS1.DATA[*]
Also, on DATA "Repeat Row for each Data Item" is checked (enabled), and Min Count is set at 1, Max Count is not entered, and Initial Count is not entered.
Unfortunately I'm fairly new to ABAP as well as interactive forms. But I think if I could just find a working example or a tutorial that demonstrates use of a dynamic table, I'd be able to find what I am doing wrong. But so far my searches on SDN have been frustrating.
Can anyone point me to an example of how to correctly handle the data from a dynamic table? Or suggest what might be the problem?
Any help will be greatly appreciated!
Margaret
p.s.: versions are: Netweaver 7.0 SP14, LiveCycle Designer 7.1