<?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: Event for SignOff? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803975#M2111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Here is a better approach -&lt;/P&gt;&lt;P&gt;There is a condition in Pro you can use out of the box - The condition is "esri_core_isSignedIn" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;button&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;id&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;SigningOffPortal_StatusButton&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;caption&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;StatusButton&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;condition&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;esri_core_isSignedIn&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;..&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it and the button enables/disabled based on the Sign In status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2020 21:49:21 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2020-03-23T21:49:21Z</dc:date>
    <item>
      <title>Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803972#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't look like there is an event to listen out for users signing out of their active portal. Is there something I'm missing or is there another way to do this? Or do I have to keep checking if the user is signed in before my code does anything that requires the user to be actually signed in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only ask as I was going to disable my addin toolbar if the user had signed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 09:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803972#M2108</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-03-23T09:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803973#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a &lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14672.html"&gt;IsSignedOn &lt;/A&gt;property that you can use.&amp;nbsp; To use this property to enable/Disable your toolbar, I recommend &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Code-Your-Own-States-and-Conditions"&gt;States and Conditions&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;You can&amp;nbsp;create your&amp;nbsp;own condition based on IsSignedOn property,&amp;nbsp; then build the underlying state using your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:19:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803973#M2109</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-03-23T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803974#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that - but I need to dynamically enable or disable my toolbar based on a user signing out, i.e. the exact moment the user signs off - can that be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803974#M2110</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-03-23T19:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803975#M2111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Here is a better approach -&lt;/P&gt;&lt;P&gt;There is a condition in Pro you can use out of the box - The condition is "esri_core_isSignedIn" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;button&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;id&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;SigningOffPortal_StatusButton&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;caption&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;StatusButton&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;condition&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;esri_core_isSignedIn&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;..&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested it and the button enables/disabled based on the Sign In status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 21:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803975#M2111</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-03-23T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803976#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK -&amp;nbsp;this&amp;nbsp;works in part and that's useful to know &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still need to know things about the user when they sign in or sign out, and this gives me no chance to do that as far as I can see.&lt;/P&gt;&lt;P&gt;The context is - I want the control to change state if the user is a member of group in Portal or not, also it needs to disable/enable if signed in or out (which is where your fix works partly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is by custom control with an embedded button and image that toggles between two images:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the use cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;User A&amp;nbsp;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;not signed in&lt;/STRONG&gt; &lt;/SPAN&gt;to Portal and is not a member of foo group. "Request Access" (to foo group) button is disabled.&amp;nbsp; This is where your answer works as the whole control is deactivated, and that's good.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/486050_denied disabled.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN&gt;User A&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;signs in&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;to Portal and is not a member of foo group, the control enables (again your answer solves this scenario) the user can now press "Request Access" button and go from there:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/485989_denied.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;User A signs out, user B &lt;STRONG style="color: #ff6600; "&gt;signs in&lt;/STRONG&gt; and already has access to foo group.&amp;nbsp;&lt;STRONG style="text-decoration: underline; "&gt;This is where it breaks down.&lt;/STRONG&gt;&amp;nbsp; The control&amp;nbsp;should change but it doesn't,&amp;nbsp;&lt;SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;as no event is raised when the user signs in. &lt;/STRONG&gt;&lt;/SPAN&gt;The control should change to this:&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/486051_Accepted.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesn't it, just re-enables the the control without changing the icon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/485989_denied.png" style="border: 0px; margin: 2px 0px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this makes some sense - and how I need to intercept the signing in and out process/event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:02:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803976#M2112</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-03-24T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803977#M2113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just wondering if you have had any further thoughts in response to my last post (below)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 19:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803977#M2113</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-03-26T19:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803978#M2114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;Uma and I are looking into this with the development team. There is an internal event that fires when a user signs in or when a user signs out of online or portal. However, if the user toggles between active portals into which he or she is already signed in then, of course, that event does not fire (as the portal _signed on_ status did not change).....but.... the "active portal changed" event does fire because the active portal did change (and this event is already public) even though its signed on status didn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, with the addition of this "new" event getting&amp;nbsp; exposed to give you notification of a given portal's sign in/sign out status changing _combined with_ the existing "&lt;SPAN&gt;active&amp;nbsp;portal changed" event giving you notification of the active portal changing - that should give you everything you need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We will get that in for 2.6.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 22:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803978#M2114</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-03-27T22:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803979#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me. Good to know that this will happen in a future version, I will try and figure out some work-around for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Simon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2020 09:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803979#M2115</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-03-30T09:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803980#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon, with the release of 2.6, (tomorrow, July 28th, PST) this event is now available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic29088.html"&gt;ArcGIS.Desktop.Core.Events.PortalSignOnChangedEvent&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 23:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803980#M2116</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-07-27T23:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Event for SignOff?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803981#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats really excellent news - and thank you for getting back to me. It's really appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 10:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/event-for-signoff/m-p/803981#M2117</guid>
      <dc:creator>Vidar</dc:creator>
      <dc:date>2020-07-28T10:30:17Z</dc:date>
    </item>
  </channel>
</rss>

