cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Increasing the rows dynamically.

Former Member
0 Kudos

Hi experts,

I Have created a view in which there is a row of items price,qty,units....There is one add button whenever i click on the add item the same row should get added to it dynamically.when i click on remove it should get deleted..could anyone help me out in this regard..

Regards,

Mrinalini.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If available in your release, you could use the RowRepeater UI element. Then adding/deleting a row is just adding/deleting a context element from the data source node.

Former Member
0 Kudos

if you have each row as set of usual controls,

you can generate next row as TranstparentContainer control

and elements within it dynamically, in event handler of your button ADD,

as described in following documentation:

HOW TO ADD UI ELEMENTS DYNAMICALLY IN WEB DYNPRO

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0b8dd16-5d78-2c10-6f82-c88fe4a7cae1

DYNAMIC USER INTERFACE GENERATION IN WEB DYNPRO

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/74cda090-0201-0010-6b91-f85b2489f765

same way as adding controls you can remove it - dynamically,

as described in the same docs.

regards