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(); } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.