In a WebDesigner script I try this (in a js function):
$.udb('PERS').executeQuery()
.then(function() {
$.udb('PERS').rows('condition', { PERSON_ID: "="+event.detail }).rowDelete({
check: function(){
alert('Deleted: ' + event.detail);
return true;
}
});
})
.catch(function() {
console.log("Something went wrong deleting a person!");
});
where event.detail is the correct id of the person, I console logged it out.
No error, even the alert with Deleted comes but no actual delete is performed.
I tried instead of
$.udb('PERS').rows('condition', { PERSON_ID: "="+event.detail }).rowDelete
this:
$.udb('PERS').rows({ PERSON_ID: event.detail }).rowDelete
but still does not work