-
-
Notifications
You must be signed in to change notification settings - Fork 597
Closed
Description
var planobjar = []; for(var item of plansel) { var planob = {"objectId": item.planid, "__type": "Pointer", "className": "Plans"}; var pobj = {"planid": planob, "qty": item.qty, "unit":item.unit}; planobjar.push(planob); } var nClass = Parse.Object.extend("myClass"); var robj = new nClass(); robj.set ( 'planSelection', planobjar); robj.save({ success: function(planres) { // code }, error:function(error) { // code } });
If I try to save this array into an array field it doesn't save, but if it's an array without pointer it saves properly
Metadata
Metadata
Assignees
Labels
No labels