Show TOC

Dynamic Tables in Interactive FormsLocate this document in the navigation structure

Use

In Adobe LiveCycle Designer you can add and remove subforms from a form during runtime. This involves dynamic tables in interactive forms for XML schema-based interfaces, that is, subforms that are created in or removed from forms during runtime using instanceManager.addInstance / instanceManager.removeInstance. In Web Dynpro ABAP these subforms correspond to context elements of multiple context nodes, that is, context nodes with cardinality 0..n or 1..n. Data of subforms can be transferred to the Web Dynpro framework by copying the form data to the Web Dynpro context.

If a new subform is created in an interactive form, and a relevant Web Dynpro context element does not yet exist for the subform, a context element is created and filled with data from the subform. Likewise, context elements for which a corresponding subform no longer exists are deleted from the Web Dynpro runtime environment.

To implement this function, use method SET_DYNAMIC_TABLES_ENABLED on the method handler of the InteractiveForm UI element.

Example

You can find an example in the system in the DEMO_IFBA_DYNAMIC_TABLE component.

In this example lines can be added to, and deleted from, the table. This is done "dynamically" using JavaScript in the form. The Web Dynpro context is not updated until the form is sent. Depending on whether the table has more or less lines than the context, context elements are created or deleted.