hmmmm.....
really ?
i thought, using x++ code to delete
.delete, any delete-action will work correctly; but
you can call the .doDelete, where the delete-actions has no effects.
is cascade+restriced not working like this:
custtable -(cascade)-> salestable -(cascade+restricted)-> salesline
deleteing a salestable-record will activate the restriced part of the deleteaction to the salesline.
deleteing a custtable-record will activate the cascade deleteaction and tries to delete the salestable-record(s),
what now activate the cascade part of the deleteaction to the salesline.
so, deleteing a salestable-record will only work, when this record doesn't has any salesline-records.
deleteing a custtable-record will also delete the referring salestable- and the referring salesline-records.
please correct me, if this is wrong.