December 2013
Intermediate to advanced
480 pages
14h 11m
English
If you want to retrieve a single database record from a Mobile Service then you can call the MobileServiceTable lookup() method like this:
var id= 3;tasksTable.lookup(id).done( // Success function (result) {}, // Fail function (err) {});
You pass the id of the record that you want to retrieve to the lookup() method. The id should be an integer and represent a primary key value.
If there is no matching record then an error is returned and the promise error function is executed.
Read now
Unlock full access