on 12-27-2014 8:54 AM
I created a oData service. Currently it can do only read operations. My app workflow is something like this:
The demo is inside JSBIN - http://jsbin.com/laqufupoba/1/watch?html,output
EDIT: The demo uses the service from localhost (so you wont be able to see the output, but it works)
Below is the part of code which doesnt work:
var idx = oTable1.getSelectedIndex();
if (idx !== -1) {
var m = oTable1.getModel(); // says undefined
var data = m.getData(); // doesnt work
var removed = data.splice(idx, 1);
m.setData(data)
Any clues what might be wrong ?
HI
oTable1.getModel(); should be
oTable1.getModel('ajaxtown');
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.