<?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 Re: A flaw in Javascript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439393#M40493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;here you can see an example &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html&lt;/A&gt; : map from result map and query on gp&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But is it also possible to do the same on ArcServer 10.03? The example is for ArcServer 10.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 15:41:00 GMT</pubDate>
    <dc:creator>SmaranHarihar</dc:creator>
    <dc:date>2012-11-26T15:41:00Z</dc:date>
    <item>
      <title>A flaw in Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439391#M40491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been building a Model builder which is hosted on the ArcServer to execute a geoprocessing task which then returns the result as a Map Layer which is overlaid over the basemap. I have been using this &lt;/SPAN&gt;&lt;A href="http://nicogis.blogspot.com/2011/09/non-ti-scordar-mai-del-result-map.html" rel="nofollow noopener noreferrer" target="_blank"&gt;blog&lt;/A&gt;&lt;SPAN&gt; to create the toolbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The flaw that I found was that, when the geoprocessing tool was setup with the &lt;/SPAN&gt;&lt;A href="http://i.imgur.com/bElLf.png" rel="nofollow noopener noreferrer" target="_blank"&gt;parameters&lt;/A&gt;&lt;SPAN&gt; as &lt;/SPAN&gt;&lt;STRONG&gt;A Map&lt;/STRONG&gt;&lt;SPAN&gt;, I receive the result layer but no attribute data associated with it. I am receiving the layer using the,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp.getResultImageLayer(jobInfo.jobId,"final_shp", imageParams, function(gpLayer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(gpLayer);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this does not return the LayerInfo or any of the attribute details. This is the &lt;/SPAN&gt;&lt;A href="http://i.stack.imgur.com/thvkY.png" rel="nofollow noopener noreferrer" target="_blank"&gt;output image&lt;/A&gt;&lt;SPAN&gt; on ArcServer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried changing the parameters to &lt;/SPAN&gt;&lt;STRONG&gt;A toolbox&lt;/STRONG&gt;&lt;SPAN&gt; but even that does not return any feature attribute values and it also does not return any Map Layer. The code I am using to fetch the results is,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp.getResultData(jobInfo.jobId,"final_shp", addResults, errResults);
function addResults(results) {
console.log(results);
var features = results.value.features;
}
function errResults(err) {
console.log(err);
} &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a flaw in the JavaScript API that it needs a associate MapServer to display the Map Layer. In the Flex API, we can use A toolbox and still receive the output results and the result Map Layer? In all the API examples of Geoprocessing tool, I have seen that the GPServer has a associated MapServer. Is it not possible to fetch the result Map Layer along with result attribute Info?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcServer 10.03 and JavaScript API for my project. Pls provide a solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:39:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439391#M40491</guid>
      <dc:creator>SmaranHarihar</dc:creator>
      <dc:date>2021-12-11T19:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: A flaw in Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439392#M40492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;here you can see an example &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html&lt;/A&gt;&lt;SPAN&gt; : map from result map and query on gp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 13:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439392#M40492</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2012-11-26T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: A flaw in Javascript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439393#M40493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;here you can see an example &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_resultmapservice.html&lt;/A&gt; : map from result map and query on gp&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But is it also possible to do the same on ArcServer 10.03? The example is for ArcServer 10.1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 15:41:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/a-flaw-in-javascript-api/m-p/439393#M40493</guid>
      <dc:creator>SmaranHarihar</dc:creator>
      <dc:date>2012-11-26T15:41:00Z</dc:date>
    </item>
  </channel>
</rss>

