cancel
Showing results for 
Search instead for 
Did you mean: 

how to add a rows in a table

Former Member
0 Kudos

Hi experts,

In my sapui5 application having four input fields and one button

below to that one empty table is their ,

After filling the form if i click the button the data should get into table.

if i have filled the from 5 time means in my table 5 record should be their.

for view i am using XML (sap.m)

regard

SB

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sajjad,

Pls. find a generic algorithmic steps to acheive the objective.

- On 'press' event of the button, do the following

- Read the user input values

- Create a JSON model and assign the input values that you obtained in step 1 to the model elements.

- Now bind the model to the table and the JSON model elements to the corresponding columns of the table at the time of declaration.

Regards,

Jagannathan R

Former Member
0 Kudos

Thankq Jagannathan for solution