#feature-service-editor
This ready-to-go JavaScript prototype provides very basic SQL-like capabilities to delete, edit or search for data in feature services with or without a map. It is intended for reading any valid ArcGIS FeatureService.
Use this application as-is, embed it in your own application, extend or modify it to meet your needs. Basically have fun, and feedback or contributions are appreciated!
- Copy-and-paste a FeatureService endpoint into the field labeled "Feature Service", or use the pulldown list and set up your own FeatureServices using the ComboBox.
- IMPORTANT: The FeatureService must have an
OBJECTIDfield.
- IMPORTANT: The FeatureService must have an
- Click the "Load" button.
- Double click on any cell to enable the edit mode. Edit the field. For that row the Save, Undo and Delete buttons should become visible and enabled.
- When you are done editing select "Save", "Undo" or "Delete".
Use map Editor widget. ArcGIS API for JavaScript - Editing.
Query String lets you set the SQL string for returning data. When left blank it will return all data. As an example, to data for record 115 would be to specify: objectId='115'.
- Add your map code into the appropriate listener in the
controller.utils._setListenersfunction.
- Code need some cleaning and refactoring.
- storage.idProperty must be not first field from featureSet but field with esriFieldTypeOID type.
- IMPORTANT: Requires a valid ArcGIS Feature Service that contains an
OBJECTIDfield. - IMPORTANT: Always secure your services when allowing editing! For more information on securing your services go here.
- Experience with JavaScript and some experience with the ArcGIS API for JavaScript.
- Tested to work on Desktop versions of Chrome 26 & 27, Firefox 21, Internet Explorer 9. The current version has not been architected to work on a mobile device.
Find a bug or want to request a new feature? Please use the submit new Issue feature on this repo.
Anyone and everyone is welcome to contribute.
Copyright 2013 Esri
Debugged and adapted for real life by vasnake@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.
[](Esri Tags: JavaScript Feature Service Editing) [](Esri Language: JavaScript)


