Skip to main content
I want to create a published user parameter to pick an existing ArcSDE version when using Prompt and Run.  I found this post (https://groups.google.com/forum/#!topic/fmetalk/uL_N9j9vDW4) from 2011 and sounds like there wasn't an easy way to create a user parameter and was hoping this has changed.

 

 

Essentially I want the "Choose SDE Version" dialog to open up and the user select the version they want.  The screenshot below shows the dialog I'm looking to use for the user parameter (note I removed some info from the graphic).

 

 

How do I create a user parameter to get the "Choose SDE Version" prompt?

 

 

 

 

Hi,

 

 

the short answer: you can't, unless you define the SDE versions as a selectable list ("Choice") with hardcoded values.

 

 

The long answer is that you could create another workspace where you query SDE about the available versions (http://gis.stackexchange.com/questions/60339/how-can-i-list-sde-versions-using-python), prompt for one of those and then pass the string to a WorkspaceRunner and your current workspace. It's a bit of work, but should be feasible.

 

 

David

Reply