selecting the Geodatabase used for input to a ModelBuilder tool

Discussion created by csmithatcitilabs on May 11, 2011
Latest reply on May 13, 2011 by frankv3
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?