Skip to Content
avatar image
Former Member

how to add a rows in a table

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 06, 2015 at 12:42 PM

    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

    Add comment
    10|10000 characters needed characters exceeded