selecting the Geodatabase used for input to a ModelBuilder tool

635
3
05-11-2011 05:36 AM
CharlesSmith1
New Contributor
I want to use the JavaScriptAPI, ModelBuilder and Geoprocessing services.

I want to pass in a user string with the name/directory of his geodatabase and then use a feature class or feature set as input to a ModelBulider tool.

Are there any code examples showing this?

Does this work with variable substitution?

Do I need an ArcPy tool to connect to the geodatabase to use as the input?

Thanks
Charles
0 Kudos
3 Replies
FrankVignati
Occasional Contributor II
not sure of your question, do you just want the user to select a geodatabase when they fire off the model? if so then use a workspace variable in the model and make it a parameter
0 Kudos
CharlesSmith1
New Contributor
Hi Frank,

Thanks for the reply.

I want to publish the tool as a geoprocessing service and so I want to have a string input parameter with the path and name of a personal database on our ArcServer.

Does this make sense?

Charles
0 Kudos
FrankVignati
Occasional Contributor II
sorry i misunderstood what you are trying to accomplish, maybe you should post the question in the arcgis sever forum for a better response
0 Kudos