Select to view content in your preferred language

Can we override the Choose Workspace dialog and set the workspace programmatically?

124
2
Jump to solution
2 weeks ago
Jeff-Reinhart
Regular Contributor

Working on a custom ArcGIS Pro Configuration / Add-in. We need to constrain editing to only versioned datasets in a particular geodatabase. Users also need an edit session. They need to be able to stop editing and not save edits. Short transactions would not work well for our user base. In pursuit of this, we have changed Options | Editing | Session | “Enable and disable editing from the Edit tab” to True and have set “single workspace edit session” via

ApplicationOptions.EditingOptions.EnableEditingFromEditTab = true;

When the user starts editing, they are prompted with the Choose Workspace dialog (even if there is only one workspace to choose from). If we know the workspace the user will be editing, the user should not need to go through the extra step of picking the workspace. Is there a way to override the Choose Workspace dialog and set the workspace for the user via the code? I have not found a way to specify a default workspace in the UI and searching the docs for an override has not turned up an answer.

0 Kudos
1 Solution

Accepted Solutions
NarelleChedzey
Esri Contributor

Hi Jeff, 

Unfortunately we do not have this capability in the Editing API at this point  We do have an issue in our backlog for this work and will be addressing it for the 3.6 release. 

Narelle

 

View solution in original post

0 Kudos
2 Replies
NarelleChedzey
Esri Contributor

Hi Jeff, 

Unfortunately we do not have this capability in the Editing API at this point  We do have an issue in our backlog for this work and will be addressing it for the 3.6 release. 

Narelle

 

0 Kudos
Jeff-Reinhart
Regular Contributor

Thanks, @NarelleChedzey, good to have that confirmed.

0 Kudos