Can I replace the content of a StartPage with a login form in ArcGIS Pro when running in configuration mode?

499
1
Jump to solution
08-28-2020 10:58 AM
MarioLandry
New Contributor II

I'm trying to move a desktop app (ArcObjects) from ArcMap to ArcGIS Pro.

The first thing this app does when it opens up, is ask the user for his username and password and other details.

Since the user will be using the same project every time, I think the best approach would be to use the configuration mode to build the same app for ArcGIS Pro.  Then, when the startPage event occurs in ArcGIS Pro, it would show the login page and once the user has provided the correct info, the startPage would be completed and ArcGIS Pro would open up the default project.

Is that the right approach? And if so, is there an example that shows how it can be done?

Thanks!

0 Kudos
1 Solution

Accepted Solutions
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Yes, this would be the correct approach.  You can take a look at this sample:  https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ConfigWithMap

you might want to remove the customization of the Ribbon UI code in ConfigurationManagerWIthMap.cs:

protected override void OnUpdateDatabase(XDocument database)

View solution in original post

1 Reply
Wolf
by Esri Regular Contributor
Esri Regular Contributor

Yes, this would be the correct approach.  You can take a look at this sample:  https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ConfigWithMap

you might want to remove the customization of the Ribbon UI code in ConfigurationManagerWIthMap.cs:

protected override void OnUpdateDatabase(XDocument database)