<?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 GP works correclty but results are not displayed until I reload the page in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/gp-works-correclty-but-results-are-not-displayed/m-p/759788#M16774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a gp that gets calculated correctly but I only see the results if I reload the entire page. Is there a way to see the result without having the reload the entire page? thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; private function calculalteplanid():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; &amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet = new FeatureSet(); &amp;nbsp; SelectingFeature.features = myFeatureLayerstewardship.selectedFeatures&amp;nbsp; SelectingFeature.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var features:ArrayCollection = ArrayCollection(myFeatureLayerstewardship.graphicProvider); &amp;nbsp; var featureSet:FeatureSet = new FeatureSet(features.source);&amp;nbsp; &amp;nbsp; featureSet.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp; &amp;nbsp; var params:Object&amp;nbsp; = { &amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature, &amp;nbsp;&amp;nbsp; "Stewardship": featureSet &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var geoprocessTask:Geoprocessor = new Geoprocessor(); &amp;nbsp; geoprocessTask.outSpatialReference = myMap.spatialReference;&amp;nbsp; &amp;nbsp; geoprocessTask.url = "http://tfsgis-iisd01:6080/arcgis/rest/services/TwoParametersWithSelection2/GPServer/CalcFeaturesStewardshipOneParameterSelection"; &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.submitJob(params, null, null); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(GeoprocessorEvent.JOB_COMPLETE,jobCompleteHandler); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(FaultEvent.FAULT, faultHandler2); &amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; private function jobCompleteHandler(e:GeoprocessorEvent):void &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Plan ID created"); &amp;nbsp;&amp;nbsp;&amp;nbsp; myAttributeTablespatial.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayerstewardship.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; private function faultHandler2(f:FaultEvent):void &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Unexpected fault:\n" + f.toString()); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Feb 2014 17:29:43 GMT</pubDate>
    <dc:creator>ionarawilson1</dc:creator>
    <dc:date>2014-02-03T17:29:43Z</dc:date>
    <item>
      <title>GP works correclty but results are not displayed until I reload the page</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/gp-works-correclty-but-results-are-not-displayed/m-p/759788#M16774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a gp that gets calculated correctly but I only see the results if I reload the entire page. Is there a way to see the result without having the reload the entire page? thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; private function calculalteplanid():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; &amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet = new FeatureSet(); &amp;nbsp; SelectingFeature.features = myFeatureLayerstewardship.selectedFeatures&amp;nbsp; SelectingFeature.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var features:ArrayCollection = ArrayCollection(myFeatureLayerstewardship.graphicProvider); &amp;nbsp; var featureSet:FeatureSet = new FeatureSet(features.source);&amp;nbsp; &amp;nbsp; featureSet.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp; &amp;nbsp; var params:Object&amp;nbsp; = { &amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature, &amp;nbsp;&amp;nbsp; "Stewardship": featureSet &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var geoprocessTask:Geoprocessor = new Geoprocessor(); &amp;nbsp; geoprocessTask.outSpatialReference = myMap.spatialReference;&amp;nbsp; &amp;nbsp; geoprocessTask.url = "http://tfsgis-iisd01:6080/arcgis/rest/services/TwoParametersWithSelection2/GPServer/CalcFeaturesStewardshipOneParameterSelection"; &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.submitJob(params, null, null); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(GeoprocessorEvent.JOB_COMPLETE,jobCompleteHandler); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(FaultEvent.FAULT, faultHandler2); &amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; private function jobCompleteHandler(e:GeoprocessorEvent):void &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Plan ID created"); &amp;nbsp;&amp;nbsp;&amp;nbsp; myAttributeTablespatial.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayerstewardship.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; private function faultHandler2(f:FaultEvent):void &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Unexpected fault:\n" + f.toString()); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 17:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/gp-works-correclty-but-results-are-not-displayed/m-p/759788#M16774</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2014-02-03T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: GP works correclty but results are not displayed until I reload the page</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/gp-works-correclty-but-results-are-not-displayed/m-p/759789#M16775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I made the layer and the table invisible, then visible again when completed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp; private function calculalteplanid():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; &amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet = new FeatureSet(); &amp;nbsp; SelectingFeature.features = myFeatureLayerstewardship.selectedFeatures&amp;nbsp; SelectingFeature.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var features:ArrayCollection = ArrayCollection(myFeatureLayerstewardship.graphicProvider); &amp;nbsp; var featureSet:FeatureSet = new FeatureSet(features.source); &amp;nbsp; // or&amp;nbsp; // var featureSet:FeatureSet = new FeatureSet(features.toArray())&amp;nbsp;&amp;nbsp; &amp;nbsp; featureSet.fields = myFeatureLayerstewardship.layerDetails.fields &amp;nbsp; CursorManager.setBusyCursor(); &amp;nbsp; var params:Object&amp;nbsp; = { &amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature, &amp;nbsp;&amp;nbsp; "Stewardship": featureSet &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var geoprocessTask:Geoprocessor = new Geoprocessor(); &amp;nbsp; geoprocessTask.outSpatialReference = myMap.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.url = "http://tfsgis-iisd01:6080/arcgis/rest/services/TwoParametersWithSelection2/GPServer/CalcFeaturesStewardshipOneParameterSelection"; &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.submitJob(params, null, null); &amp;nbsp; myAttributeTablespatial.visible = false &amp;nbsp; myFeatureLayerstewardship.visible = false &amp;nbsp; geoprocessTask.addEventListener(GeoprocessorEvent.JOB_COMPLETE,jobCompleteHandler); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(FaultEvent.FAULT, faultHandler2); &amp;nbsp;&amp;nbsp; }&amp;nbsp; private function jobCompleteHandler(e:GeoprocessorEvent):void &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; CursorManager.removeBusyCursor(); &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Plan ID created"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //myEditor.attributeInspector.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp; myAttributeTablespatial.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayerstewardship.refresh() &amp;nbsp;&amp;nbsp;&amp;nbsp; myAttributeTablespatial.visible = true &amp;nbsp;&amp;nbsp;&amp;nbsp; myFeatureLayerstewardship.visible = true &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; } &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 19:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/gp-works-correclty-but-results-are-not-displayed/m-p/759789#M16775</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2014-02-03T19:50:10Z</dc:date>
    </item>
  </channel>
</rss>

