Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cloud.Objects.query({
- classname:'Reservacion'
- }, function(e){
- if(e.success){
- Titanium.API.info('Success: Count: ' + e.Reservacion.length);
- for(var i=0; i< e.Reservacion.length; i++){
- data.push({title : e.Reservacion[i].nombre});
- }
- data.sort(sortByTitle);
- tableView.data=data;
- } else {
- alert('Error \n ' + ((e.error && e.message) || JSON.stringify(e)));
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement