Copy Table Rows in Adobe LiveCycle Designer Forms
Question details
The user needs to select rows from an imported table and copy their values into a second table in an SAP print form.

- Product
- Adobe LiveCycle Designer for SAP forms
- Device & OS
- not provided
- Scenario
- An SAP Cloud print form uses an imported table as the source for another table in the form context.
- Observed behavior
- The desired result is a second table populated with the selected source rows.
Confirm the source and destination table names, their XFA data bindings, and the fields to copy. Determine whether the form is interactive or rendered as a print form, since the appropriate data preparation and script event may differ.
Create destination rows with XFA instanceManager
Use this approach when the destination table has a repeatable row and the form's runtime supports the required XFA script.
The exact script depends on the form hierarchy, data bindings, selection criteria, and whether row instances or bound data records are the source. A working script requires the actual XFA paths and field names.
In LiveCycle Designer, open the form and use the Hierarchy and Data View palettes to identify the source rows, destination row subform, and bound fields.
Select the destination row subform in the Hierarchy palette. In the Object palette, check its binding and enable row repetition as appropriate for the form.
Open the Script Editor for an event appropriate to the form's rendering workflow. Loop through the source rows, test each row against the selection criteria, and call the destination row's instanceManager.addInstance() for each match.
In the script, assign each matching source field's value to the corresponding field in the newly created destination row. Preview or render the form with sample data and verify the row count, values, and bindings.

Prepare the selected rows in the form data
Use this approach when the SAP form's data preparation can provide the destination table before rendering.
Work with PDFs and Office tables in WPS Office
WPS Office is a free, lightweight alternative for everyday PDF and Office document work, with a familiar interface and compatible formats that make moving common files straightforward. It does not replace LiveCycle Designer for creating or scripting XFA forms.

Frequently Asked Questions
How do I create a new table row in an XFA form?
Configure the destination row subform to repeat in LiveCycle Designer, then use its instanceManager.addInstance() method in an appropriate script event. Assign values to the fields in the new instance.
Why does the copy script need the table and field names?
The script must resolve the actual XFA paths to the source rows, destination row instance manager, and fields. Check the Hierarchy and Data View palettes for the form's structure and bindings.
Can I populate the second table without an XFA script?
Yes, if the SAP form's data preparation can supply a separate collection of selected records. Bind the repeatable destination row to that collection before rendering.
Can WPS Office replace LiveCycle Designer for this task?
No. WPS Office can help with everyday PDFs and Office tables, but it does not provide the LiveCycle Designer workflow needed to create and script XFA form instances.




