Geoprocessing Widget (Record Set Result)

430
1
10-03-2011 10:36 AM
MatthewBullock
New Contributor III
I am using the geoprocessing widget to run a GP task with feature set input and record set output. The GP task runs successfully, but the columns within the result datagrid are ordered alphabetically. This is also the case for the population summary example for the geoprocessing widget.

When I run the GP task in ArcGIS desktop, the results are ordered the way they are specified in the python script (not alphabetically). So I am thinking there is a function that is reordering the result columns. I thought that it would be in the GeoprocessingWidget.mxml and the GPOutputRecordSetParamItemRenderer.mxml, but I didn't see code that would resort the columns. Maybe I'm missing something.

Also, the results are returning the OBJECTID. The python script hides certain fields from the results table, but the OBJECTID remains visible even though the code has it as hidden.

Any help is greatly appreciated.
Tags (2)
0 Kudos
1 Reply
ErikMartin
Occasional Contributor
I am using the geoprocessing widget to run a GP task with feature set input and record set output. The GP task runs successfully, but the columns within the result datagrid are ordered alphabetically. This is also the case for the population summary example for the geoprocessing widget.

When I run the GP task in ArcGIS desktop, the results are ordered the way they are specified in the python script (not alphabetically). So I am thinking there is a function that is reordering the result columns. I thought that it would be in the GeoprocessingWidget.mxml and the GPOutputRecordSetParamItemRenderer.mxml, but I didn't see code that would resort the columns. Maybe I'm missing something.

Also, the results are returning the OBJECTID. The python script hides certain fields from the results table, but the OBJECTID remains visible even though the code has it as hidden.

Any help is greatly appreciated.


Matt,

I am looking at getting up a geoprocessing service where the result attributes can be viewed as a datagrid.  I have not been able to find any examples of this-- would you be willing to share yours?

Thanks,
-Erik
0 Kudos