Good afternoon, thanks for taking the time to answer me back. I ended up using the following code:
doc_add_callback(current_doc(), 'delete', 'triggerDelete');
...
function triggerDelete(doc, op){
local tickEvent;
if($op == 1 && numerotationHelper::insertionInProgress == 0){
# callback are always called twice
# https://support.ptc.com/help/arbortext/r8.1.0.0/en/index.html#page/Program/acl_ref/help148-517.html
numerotationHelper::lastDeletePressed = javascript('d = Date.now();d.toString();');
local selectedElement = selected_element();
if(index(selectedElement, "-1")>0){
numerotationHelper::lastObjectParentDeleted = "";
numerotationHelper::lastObjectDeleted = "";
}
else{
numerotationHelper::lastObjectParentDeleted = oid_parent($selectedElement);
numerotationHelper::lastObjectDeleted = oid_name($selectedElement);
}
}
}
Once again, thank you !