Select to view content in your preferred language

Send excel in parameter to a geoprocess

805
1
01-31-2013 10:15 PM
IkerBerasaluce
Occasional Contributor
Hello,

I've managed to create a working ArcGIS Model service and now I'm trying to use it in my silverlight application. The model uses a geoprocessing tool that needs a Feature set (a shp layer) and a Record set (expected to be an excel file). I'm trying to add this parameters in my development like it's done in the message in a bottle sample (http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MessageInABottle), but I don't know how to convert the data in the excel to the FeatureSet that it's asking me for.
Am I in the right way or I'm making this overly complicated?

Thank you.
0 Kudos
1 Reply
IkerBerasaluce
Occasional Contributor
Ok,

I found a way of sending the excel information in a string variable ins this page http://resources.esri.com/help/9.3/arcgisserver/apis/rest/index.html?gpsubmit.html

This is the code I'm using right now, I will make a loop once I my geoprocessing task works properly.

strExcel = "{ " & _
             "'features'  : [ " & _
             "{ " & _
             " 'attributes' : {'Header1' : 'Data1', 'Header2' : Data2, 'Header3' : Data3} " & _
             "} " & _
             "} " & _
             "} "

parameters.Add(New GPRecordSet("Excel", strExcel))


Hope it helps somebody.