dojo.connect(layer, "onBeforeApplyEdits", prepareApplyEdits); function prepareApplyEdits(adds,updates,deletes) { var ok = true; if(adds==undefined && updates==undefined && deletes!=undefined){ if(confirm("Do you really want to delete those elements?")){ /** treatement for attributes **/ }else{ ok=false; } } if(!ok){ layer.clearSelection(); throw new Error(); } }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.