Select to view content in your preferred language

Activate / Deactivate custom Add-In for Enterprise Credentials in ArcGIS Pro.

73
2
Jump to solution
Tuesday
MuhammadElbagoury
New Contributor II

Hello All,

I created a custom Add-In with number of groups and buttons.
I want to activate this add-in with all groups and buttons only if I am logged in to ArcGIS Pro using ArcGIS Enterprise credentials.

Please support,
Thank you.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

You can use states and conditions.

  • Pro has an internal state defined by this id: esri_core_isSignedIn
  • You can create your own custom condition using this state. New conditions are defined in daml.
  • Then add this condition to your controls.

In DAML, create this condition:

  ...
 <conditions>
      <insertCondition id="my_condition_Online"> 
	 <and>
	   <state id="esri_core_isSignedIn" />
	 </and>
      </insertCondition>
 </conditions>	
</ArcGIS>

Then, add this condition to your control. Like this in config.daml

<tab id="EsriCommunity_Tab1" caption="New Tab" condition="my_condition_Online">

View solution in original post

2 Replies
UmaHarano
Esri Regular Contributor

You can use states and conditions.

  • Pro has an internal state defined by this id: esri_core_isSignedIn
  • You can create your own custom condition using this state. New conditions are defined in daml.
  • Then add this condition to your controls.

In DAML, create this condition:

  ...
 <conditions>
      <insertCondition id="my_condition_Online"> 
	 <and>
	   <state id="esri_core_isSignedIn" />
	 </and>
      </insertCondition>
 </conditions>	
</ArcGIS>

Then, add this condition to your control. Like this in config.daml

<tab id="EsriCommunity_Tab1" caption="New Tab" condition="my_condition_Online">
MuhammadElbagoury
New Contributor II

Thank you for your support.
This worked, the tab is already visible while Pro is signed in.
What if I want to customize this signed in state to be only for Enterprise (not for public account or even Online Organization) ??

0 Kudos