Skip to Content

Getting Error when trying to add rows to the sap.ui.table dynamically.

Hi Friends,

I am new to Ui5, need help regarding the error when trying to add rows dynamically.

My requirement is to add the table rows dynamically on button press.

Designation Fname Lname age Dropdown Input Input Input

Designation field should be Dropdown and remaining three should be input enabled.

Following is the plunker referring

https://plnkr.co/edit/8YvXxk?p=preview

Following is the error getting

Form.controller.js:236 Uncaught TypeError: Cannot read property 'getModel' of undefined

please help me in this regards

Thanks,

Kasi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 23 at 06:11 AM

    Please can you give details of your code. the plunker example works. I suspect you are not getting a handle to your model correctly. How are you referencing your model (and is it a named model?)

    Is it declared in you manifest.json (and if yes show us how).

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23 at 05:07 AM

    Seems like you were able to resolve the issue on your own as i didn't get the error in the code.

    Please close the thread, if done.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 23 at 08:01 PM

    I do second what is said here. I'm sure this was useful.

    Please elaborate on how you solved it and close the thread.

    Add comment
    10|10000 characters needed characters exceeded