I’m back here. i proceeding with the saving of a pointer to the Event table in the activity table. and this message appear
PUT https://api.backendless.com/v1/data/Activity 500 (Internal Server Error)
service.js:164 error message - Internal server error with id ACB0AAA6-2F1E-5F9E-FFDA-DC490DF5FD00
service.js:165 error code - 500
if i saved only simple variables the function work well but, if i saved a object pointer the function dont work. my code is this
function Activity(){
this.type = data.type;
this.content = data.comment;
this.event = data.event; // or { objectId: data.event['objectId'] , ___class:"EventNormal" }
}
function error(err)
{
console.log("error message - " + err.message);
console.log("error code - " + err.statusCode);
callback(false, error);
}
function success(activity)
{
console.log(activity);
callback(true, activity);
}
var comment = new Activity();
Backendless.Persistence.of(Activity).save(
comment,
new Backendless.Async(success, error)
);