I am using Parse and JavaScript.
I know the ObjectId from the Status_id-class but is not able to update the column in Question_status-class because it is a Pointer-type
How should I update a Pointer column with JavaScript..
var Answer = Parse.Object.extend("Question_status");
var answer = new Answer();
answer.id = question_status_id;
answer.set("answer", selectedAnswer);
answer.set("status_id", "duMW5p8Dh3");
answer.save(null, {
success: function(answer) {
//console.log('New object created with objectId: ' + answer.id);
$.mobile.changePage( "#finish", { transition: "slideup", changeHash: false });
},
error: function(answer, error) {
console.log('Failed to create new object, with error code: ' + error.description);
}
});