AnsweredAssumed Answered

how to set values for last_edited_user from javascript api

Question asked by abdul.mateenesrisaudiarabia-esridist Employee on Nov 12, 2019
Latest reply on Dec 10, 2019 by hgonzago-esristaff

we have arcgis server 10.6.1 with open rest services, with editor tracking enabled,how to set values for last_edited_user from javascript api.

 

  1. var userName = "User_Test";  
  2. var userEdits = {  
  3.    created_user: userName,  
  4.    last_edited_user: userName  
  5. };  
  6. on(layer, "before-apply-edits"function(data){  
  7.   data.adds.forEach(function(graphic){  
  8.        lang.mixin(graphic.attributes, userEdits);  
  9.   });  
  10. }); 

 

once apply edits ,last_edited_user is set with value "esri_anonymous ".

How to set last_edited_user value with username & services are not secured.

 

 

Outcomes