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(); } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.