<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Return defined fields using GeoProcess method submitJob() or execute() in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-defined-fields-using-geoprocess-method/m-p/342992#M8194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems like I've been down this road before, but I'll try again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a Geoprocess spatial query to return user defined fields/columns to the client web browser.&amp;nbsp; However, what i keep getting returned is all the (75 fields/columns) of the map layer.&amp;nbsp; I've tried both the submitJob() and execute() methods of the GeoProcess and get the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the two methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; GP.submitJob(params)&amp;nbsp; The params are defined by the code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var Fields:String = new String("PATPCL_OWNER OWNER HIDDEN NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_LGL_ACRE LGL_ACRE VISIBLE NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_SALEDT1 SALEDT1 VISIBLE NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_ADDR1 PATPCL_ADDR1 HIDDEN NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.polygon = featureSet;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Relationship = DropDownMenuSelection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.ShowFields = Fields;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whether i specify the fields to be HIDDEN or VISIBLE, i still get all fields returned.&amp;nbsp; I know the GP model is working correctly, because I can run the submitJob thru the REST service and the returned job has the correct fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me I am passing the ShowFields parameter incorrectly thru FLEX, or there is some kind of disconnect between FLEX and ESRI with the submitJob() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; execute(params)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Uses the same params as shown above.&amp;nbsp; However, since there is no job id returned by this method I cannot check it thru the REST service.&amp;nbsp; I can only check the returned results thru my FLEX app and I'm finding that all the fields are returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done alot of researching on the web and apparently others have had the same issue.&amp;nbsp; Has anyone found a solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie Q.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 14:41:48 GMT</pubDate>
    <dc:creator>eddiequinlan</dc:creator>
    <dc:date>2014-07-01T14:41:48Z</dc:date>
    <item>
      <title>Return defined fields using GeoProcess method submitJob() or execute()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-defined-fields-using-geoprocess-method/m-p/342992#M8194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems like I've been down this road before, but I'll try again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a Geoprocess spatial query to return user defined fields/columns to the client web browser.&amp;nbsp; However, what i keep getting returned is all the (75 fields/columns) of the map layer.&amp;nbsp; I've tried both the submitJob() and execute() methods of the GeoProcess and get the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the two methods:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; GP.submitJob(params)&amp;nbsp; The params are defined by the code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var Fields:String = new String("PATPCL_OWNER OWNER HIDDEN NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_LGL_ACRE LGL_ACRE VISIBLE NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_SALEDT1 SALEDT1 VISIBLE NONE;" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "PATPCL_ADDR1 PATPCL_ADDR1 HIDDEN NONE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.polygon = featureSet;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.Relationship = DropDownMenuSelection;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;params.ShowFields = Fields;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whether i specify the fields to be HIDDEN or VISIBLE, i still get all fields returned.&amp;nbsp; I know the GP model is working correctly, because I can run the submitJob thru the REST service and the returned job has the correct fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me I am passing the ShowFields parameter incorrectly thru FLEX, or there is some kind of disconnect between FLEX and ESRI with the submitJob() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; execute(params)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Uses the same params as shown above.&amp;nbsp; However, since there is no job id returned by this method I cannot check it thru the REST service.&amp;nbsp; I can only check the returned results thru my FLEX app and I'm finding that all the fields are returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done alot of researching on the web and apparently others have had the same issue.&amp;nbsp; Has anyone found a solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie Q.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/return-defined-fields-using-geoprocess-method/m-p/342992#M8194</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2014-07-01T14:41:48Z</dc:date>
    </item>
  </channel>
</rss>

