<?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: No changes made, now code does not work in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423986#M39012</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;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Assuming you're referring to this sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html&lt;/A&gt;&lt;SPAN&gt; you might uncomment and tweak the console log message in the loadCredentials function to see if the problem is in the presence of or parsing of the idJson.&amp;nbsp; Might could be something is up with the cookie (disabled or security setting?).&amp;nbsp; And if there's another template or something you're referring to, maybe using this simple javascript sample would help you reduce variables and narrow down the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 14:13:15 GMT</pubDate>
    <dc:creator>KenBurcham</dc:creator>
    <dc:date>2013-09-05T14:13:15Z</dc:date>
    <item>
      <title>No changes made, now code does not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423984#M39010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was playing around tinkering with how to subset data based on user ID. I used the Persisting Identity Manager template from ESRI as a starting point. i ended up using the idObject to gain access to the userID and used that in value in a definition query of the operational layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; //access the user credential stored in the idObject &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var user = idObject.credentials[0].userId; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var demoMapService = new ArcGISDynamicMapServiceLayer("https://****"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //ser layer Definition based on the user name &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layerDefs = []; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefs[1] = "owner='"+ user+"'"; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; demoMapService.setLayerDefinitions(layerDefs); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(demoMapService);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this was working fine until i came back to it today and i am no longer prompted for credentials. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Firebug says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; TypeError: idObject is undefined http://atreyu/AuthenticationTemplate/index.html Line 79&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;oddly my button_click() is also coming up as undefined though all the code is there. '&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints or clues?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 23:20:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423984#M39010</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2013-09-04T23:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: No changes made, now code does not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423985#M39011</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;BR /&gt;&lt;SPAN&gt;This error means that the variable&amp;nbsp; "idObject" is undefined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just add in the beginning of your script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var&amp;nbsp; idObject;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 11:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423985#M39011</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-09-05T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: No changes made, now code does not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423986#M39012</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;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Assuming you're referring to this sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html&lt;/A&gt;&lt;SPAN&gt; you might uncomment and tweak the console log message in the loadCredentials function to see if the problem is in the presence of or parsing of the idJson.&amp;nbsp; Might could be something is up with the cookie (disabled or security setting?).&amp;nbsp; And if there's another template or something you're referring to, maybe using this simple javascript sample would help you reduce variables and narrow down the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 14:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423986#M39012</guid>
      <dc:creator>KenBurcham</dc:creator>
      <dc:date>2013-09-05T14:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: No changes made, now code does not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423987#M39013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;This error means that the variable&amp;nbsp; "idObject" is undefined.&lt;BR /&gt;&lt;BR /&gt;Just add in the beginning of your script:&lt;BR /&gt;&lt;BR /&gt;var&amp;nbsp; idObject;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it came down to the credentials being stored and me referencing them by index value. so it was not able to find the index value of idObject. I tried removing all cookies and such but the old credentials persisted... it does work but still need to deal with the stored creds&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 22:33:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423987#M39013</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2013-09-17T22:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: No changes made, now code does not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423988#M39014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Assuming you're referring to this sample: &lt;A href="https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/widget_identitymanager_client_side.html&lt;/A&gt; you might uncomment and tweak the console log message in the loadCredentials function to see if the problem is in the presence of or parsing of the idJson.&amp;nbsp; Might could be something is up with the cookie (disabled or security setting?).&amp;nbsp; And if there's another template or something you're referring to, maybe using this simple javascript sample would help you reduce variables and narrow down the issue.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;ken.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you are correct that it had to do with persistence of the previous credentials. Got pulled off this for a bit but am getting back into it next week. thnx for your thoughts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 22:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/no-changes-made-now-code-does-not-work/m-p/423988#M39014</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2013-09-17T22:34:38Z</dc:date>
    </item>
  </channel>
</rss>

