on 04-27-2016 3:15 PM
Hi Experts,
I have created a sapui5 CRUD application following the below link as a reference.
https://www.youtube.com/watch?v=wA_lK93PDU4#t=936.452018
I am able to create a new ticket but unable to save the same.
Further I am not able to perform edit and delete operations also.
Below are the exceptions I am encountering:
1. Cannot read property 'getBindingContextPath' of undefined on clicking the delete button.
2. Uncaught TypeError: oTable.getSelectedIndex is not a function on clicking the edit button.
3. Uncaught [object][object] on creating a new ticket and clicking the save button. Also the server responded with 405 error in POST method.
Please provide your suggestions as to where I could have gone wrong.
Thanks,
Srinivasan
I have narrowed down to the place where I am getting the error. I my Product.controller,js I have a code "OData.request(requestObj, function() )" which shows an error "OData is undefined".
Any suggestions on resolving it would be helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
code please
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun,
On following some block I had edited the code from var selected = oTable.getSelectedIndex();
to var selected = oTable.getBindingContextPath();
Still facing the same issue.
I am not sure if this is the correct method. I have attached the original code from a reference scn blog.
Regards,
Srinivasan
Have you tried to replicate the same scenario using SAPUI5 CRUD Master Detail template?
In that CRUD Application I am again unable to create a new ticket. Futher to it the changes done for a particular ticket is not persistent.
The changes are not saved when I navigate to another screen and the visit the edited ticket.
Any information regarding this from your side?
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.