This question is locked. New answers and comments are not allowed.
I have tried to create an row on Backend Service after I have created another. I do not intend to create multiple, but let the user create repeatedly. To do the the button on NativeScript/Everlive calls this function.
But, after first time, Everlive shows this error: The operation results in a duplicate key for a unique index. code 107
exports.addMed = function(args) {
disableButtons();
med.isLoading = true;
data.create(medidas.registros, function(data) {
med.isLoading = false;
enableButtons();
}, function(data) {
med.isLoading = false;
enableButtons();
});
};