Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getShapeDataFile() {
- var ShapeData = Parse.Object.extend("ShapeData");
- var query = new Parse.Query(ShapeData);
- query.ascending("createdAt");
- query.find({
- success: function(shapeData) {
- shapeObject = shapeData[0];
- },
- error: function(error) {
- console.log("Error getting shapeData object " + error);
- }
- });
- }
- function saveNCO() {
- shapeObject.set("NCO", "NCO");
- shapeObject.save({
- success: function(nco) {
- console.log("saved succesfully ID: " + nco.id + " NCO: " + nco.get("NCO"));
- },
- error: function(error) {
- console.log("error saving object " + error);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement