Skip to Content
0
Former Member
Dec 28, 2007 at 08:08 AM

Adding fields on click of button

26 Views

Hi All

The requirement is -

There is a form for user to put in his educational detail.

On click of a button, the same form appears below the existing form for user to put in more educational qualification.

I have created a view in a webdynpro project which contains a form having a transparent container say tcEducationDetails having some textviews and inputfields.

It contains a button "Save and Add".

Now i want that on click of this button a new container with exactly same elements i.e i need a duplicate copy of the container tcEducationDetails gets generated and added to RootUIElementContainer.

Instead of making all the containers and the UI elements dynamically and adding to RootUIElementContainer can we just create a copy of tcEducationDetails and add to RootUIElementContainer

OR

Can we create a table having fields not placed as columns but placed as in a form(one below the other) and on click of a button a new row (Containing fields in a form layout) gets added.

Hope i am clear with the requiremnt.

Please help. Points will be rewarded.

Thanks and Regards

Sonal Mangla