AnsweredAssumed Answered

Return a pop up window with who edit last

Question asked by AlexSabrina on Jul 11, 2014

Hi all,

I am building this web application that  enables the users to edit data. I have enable tracking edits/archiving to it. Now I am looking to have a window that says something like this "this layer was last updated 2 days ago by mike". I am not sure how to do this. I can Query but will that be enough? I am thinking of using this:


getEditSummary(feature, options?)StringReturns a localized summary of the last edit operation performed on the given feature, if available.

I am not too sure how to implement it in my code.


Can someone help?

below I am using the sample from ESRI to check if it works.

Thank you,



map = new Map("map", {           basemap: "satellite",           center: [-121.469, 38.556],             zoom: 8,           slider: false         });         map.on("layers-add-result", initEditor);         var rivers = new FeatureLayer("http://webgisdevint1/arcgis/rest/services/Alex_Try/AllOptions/FeatureServer/0",{           mode: FeatureLayer.MODE_ONDEMAND,           outFields: ['*']         });                 map.addLayers([rivers]);         function initEditor(evt) {           var templateLayers =, function(result){             return result.layer;           });           var templatePicker = new TemplatePicker({             featureLayers: templateLayers,             grouping: true,             rows: "auto",             columns: 3           }, "templateDiv");           templatePicker.startup();           var layers =, function(result) {             return { featureLayer: result.layer };           });           var settings = {             map: map,             templatePicker: templatePicker,             layerInfos: layers,             toolbarVisible: true,             createOptions: {               polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ],               polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON,                 Editor.CREATE_TOOL_CIRCLE,                 Editor.CREATE_TOOL_TRIANGLE,                 Editor.CREATE_TOOL_RECTANGLE               ]             },             toolbarOptions: {               reshapeVisible: true             }           };           var params = {settings: settings};              var myEditor = new Editor(params,'editorDiv');           //define snapping options           var symbol = new SimpleMarkerSymbol(             SimpleMarkerSymbol.STYLE_CROSS,             15,             new SimpleLineSymbol(               SimpleLineSymbol.STYLE_SOLID,               new Color([255, 0, 0, 0.5]),               5             ),             null           );           map.enableSnapping({             snapPointSymbol: symbol,             tolerance: 20,             snapKey: keys.ALT           });               myEditor.startup();         }