<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Edit widget+token in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edit-widget-token/m-p/14728#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Angelina,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue is similar to the issue in this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/61828-Opening-Edit-Widget-causes-secure-service-challenge?p=213638#post213638" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/61828-Opening-Edit-Widget-causes-secure-service-challenge?p=213638#post213638&lt;/A&gt;&lt;SPAN&gt;, the out-of-the-box Edit Widget is not passing the token when creating feature layers on the fly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For workaround, you can update the code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// get corresponding featurelayers
var jsonTask:JSONTask = new JSONTask;
var urlVars:URLVariables = new URLVariables();
urlVars.f = "json";
// Line 401
jsonTask.proxyURL = layer.proxyURL;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;jsonTask.token = layer.token;&lt;/SPAN&gt;
jsonTask.url = featureServiceURL;&amp;nbsp; 
jsonTask.execute(urlVars, new AsyncResponder(jsonTask_resultHandler, jsonTask_faultHandler, { layer: layer, count: index }));

and 

fLayerObject = candidateFeatureLayers[index1];
var featureLayer:FeatureLayer = new FeatureLayer;
// Line 461
featureLayer.proxyURL = arcGISDynamicMapServiceLayer.proxyURL;
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;featureLayer.token = arcGISDynamicMapServiceLayer.token;&lt;/SPAN&gt;
featureLayer.url = featureServiceURL + "/" + fLayerObject.id;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
updateFeatureLayerMinMaxScale(featureLayer, fLayerObject.id, copyLayerInfos);
featureLayer.addEventListener(LayerEvent.LOAD, featureLayerLoadHandler);
featureLayer.addEventListener(LayerEvent.LOAD_ERROR, featureLayerLoadErrorHandler);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:35:28 GMT</pubDate>
    <dc:creator>SarthakDatt</dc:creator>
    <dc:date>2021-12-10T20:35:28Z</dc:date>
    <item>
      <title>Edit widget+token</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edit-widget-token/m-p/14727#M551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I,m using secured map service and flex3. I add token to my config.xml but when I run Edit widget the login page appear and if user dont know the user and pass he should cancel login page 8 times, after that he can edit layer!!!!!!!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I do for solving this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does Edit widget has token support or no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A.ponker&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 17:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edit-widget-token/m-p/14727#M551</guid>
      <dc:creator>anjelinaponker</dc:creator>
      <dc:date>2012-07-24T17:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edit widget+token</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edit-widget-token/m-p/14728#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Angelina,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue is similar to the issue in this thread: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/61828-Opening-Edit-Widget-causes-secure-service-challenge?p=213638#post213638" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/61828-Opening-Edit-Widget-causes-secure-service-challenge?p=213638#post213638&lt;/A&gt;&lt;SPAN&gt;, the out-of-the-box Edit Widget is not passing the token when creating feature layers on the fly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For workaround, you can update the code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
// get corresponding featurelayers
var jsonTask:JSONTask = new JSONTask;
var urlVars:URLVariables = new URLVariables();
urlVars.f = "json";
// Line 401
jsonTask.proxyURL = layer.proxyURL;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;jsonTask.token = layer.token;&lt;/SPAN&gt;
jsonTask.url = featureServiceURL;&amp;nbsp; 
jsonTask.execute(urlVars, new AsyncResponder(jsonTask_resultHandler, jsonTask_faultHandler, { layer: layer, count: index }));

and 

fLayerObject = candidateFeatureLayers[index1];
var featureLayer:FeatureLayer = new FeatureLayer;
// Line 461
featureLayer.proxyURL = arcGISDynamicMapServiceLayer.proxyURL;
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;featureLayer.token = arcGISDynamicMapServiceLayer.token;&lt;/SPAN&gt;
featureLayer.url = featureServiceURL + "/" + fLayerObject.id;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
updateFeatureLayerMinMaxScale(featureLayer, fLayerObject.id, copyLayerInfos);
featureLayer.addEventListener(LayerEvent.LOAD, featureLayerLoadHandler);
featureLayer.addEventListener(LayerEvent.LOAD_ERROR, featureLayerLoadErrorHandler);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/edit-widget-token/m-p/14728#M552</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2021-12-10T20:35:28Z</dc:date>
    </item>
  </channel>
</rss>

