<?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 IdentityManager Event Listeners using AMD Syntax in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14273#M1333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to connect to the IdentityManager's "onDialogCancel" event and am not having success trying to adapt the legacy dojo style referenced here: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/66410-Identity-Manager-Event-Listeners?highlight=identity+manager+cancel"&gt;http://forums.arcgis.com/threads/66410-Identity-Manager-Event-Listeners?highlight=identity+manager+cancel&lt;/A&gt;&lt;SPAN&gt; to AMD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app is written using v 3.5 of the JSAPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code, inside of a define that includes, among other things, [on,IdentityManager,esriPortal]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function logIn(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]currentPortal = new esriPortal.Portal(registry.byId("portalInput").get("value"));[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]on(esri.id, "onDialogCancel", function(info){[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]console.log("cancelled");[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]});[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]currentPortal.signIn().then(function(loggedInUser){[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]// function here[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]});[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate any help people can provide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 13:57:59 GMT</pubDate>
    <dc:creator>PhilHolleran</dc:creator>
    <dc:date>2013-06-06T13:57:59Z</dc:date>
    <item>
      <title>IdentityManager Event Listeners using AMD Syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14273#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to connect to the IdentityManager's "onDialogCancel" event and am not having success trying to adapt the legacy dojo style referenced here: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/66410-Identity-Manager-Event-Listeners?highlight=identity+manager+cancel"&gt;http://forums.arcgis.com/threads/66410-Identity-Manager-Event-Listeners?highlight=identity+manager+cancel&lt;/A&gt;&lt;SPAN&gt; to AMD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The app is written using v 3.5 of the JSAPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code, inside of a define that includes, among other things, [on,IdentityManager,esriPortal]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function logIn(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]currentPortal = new esriPortal.Portal(registry.byId("portalInput").get("value"));[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]on(esri.id, "onDialogCancel", function(info){[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]console.log("cancelled");[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]});[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]currentPortal.signIn().then(function(loggedInUser){[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT][INDENT]// function here[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]});[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate any help people can provide.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 13:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14273#M1333</guid>
      <dc:creator>PhilHolleran</dc:creator>
      <dc:date>2013-06-06T13:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: IdentityManager Event Listeners using AMD Syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14274#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to use the 'On Style Events' syntax. To find the appropriate syntax navigate to the API reference for the Identity Manager then in the Events section click the 'On Style Events' link. Then you'll see the new event names - for example you'll need to use dialog-cancel instead of OnDialogCancel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/javascript/jsapi/identitymanager.html"&gt;http://developers.arcgis.com/en/javascript/jsapi/identitymanager.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 15:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14274#M1334</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-06-06T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: IdentityManager Event Listeners using AMD Syntax</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14275#M1335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Kelly.&amp;nbsp; Works like a charm.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/identitymanager-event-listeners-using-amd-syntax/m-p/14275#M1335</guid>
      <dc:creator>PhilHolleran</dc:creator>
      <dc:date>2013-06-06T16:24:22Z</dc:date>
    </item>
  </channel>
</rss>

