Select to view content in your preferred language

SQL query and Export Metadata

3624
13
03-15-2013 02:17 PM
AlexGole1
Emerging Contributor
Hi all,
I would like to have your input for this part of my script.
I am trying to set up an SQL query box in my tool that will allow users to to select and query from the fields obtained in the input feature layer (Input_Poly_Feature_Layer). The only problem: it seems like there is no way to display the fields in the Query builder box. Do you guys know if there is anyway to make the fields show up?

Last thing that I will intend to do is:
Each time the script is ran, I would like to save a copy of all the Metadata (All steps used for this) as a CVS file or text file? Do you have any hints or ideas on how to do this?

Thanks,
Alex
0 Kudos
13 Replies
by Anonymous User
Not applicable
Original User: ldanzinger

Yes, have that as an input parameter and use Obtained From for the SQL Query.
0 Kudos
AlexGole1
Emerging Contributor
Yes, have that as an input parameter and use Obtained From for the SQL Query.


Last question and I will stop there then. Is it possible to make a parameter that gives the user no control (i know it is weird), but i dont want the user to change the link to the shapefile.
0 Kudos
by Anonymous User
Not applicable
Original User: ldanzinger

You could probably set an error message if the user changes it using a ToolValidator class.
0 Kudos
AlexGole1
Emerging Contributor
You could probably set an error message if the user changes it using a ToolValidator class.


Thank you my script works great. I am now trying to write metadata to a feature class.
0 Kudos