Author: Vaibhav Tiwari
Creating tables in SAP Interactive Forms using Wed Dynpro:
1. Create a node <DataSource> with cardinality 1:1.
2. Create child node<TableWrapper> of <Datasource> of cardinality 1:n.
3. Now put the actual data node in <TableWrapper >.
4.Now on the form add buttons as shown in fig.2
5.Write the following code in the click event of button <Add Item>:
BP.Table1.Row1.instanceManager.addInstance(1);
xfa.form.recalculate(1);
6.Write the following code the click event of button<X>.
BP.Table1.Row1.instanceManager.removeInstance(this.parent.index);