<?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: layerDefinitions property for identifyParams in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133836#M12465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&amp;nbsp; Let me try clearing the layerDefinitions first and then set them, that is one thing I am doing differently.&amp;nbsp; Unfortunately, this is in development and not public yet.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 22:01:25 GMT</pubDate>
    <dc:creator>GaryBilotta</dc:creator>
    <dc:date>2014-03-03T22:01:25Z</dc:date>
    <item>
      <title>layerDefinitions property for identifyParams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133834#M12463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have seen some old posts regarding the layerDefinitions property for the identifyParams object and how it was not working in the javascript api or is not available, but it is there in the current documentation.&amp;nbsp; I am trying to use it now with the 3.8 api and arcgis server 10.2.1 with no luck.&amp;nbsp; Is this property still not working?&amp;nbsp; Has anyone else been able to get it to work?&amp;nbsp; I can do an identify task without a problem until I try to set this property of the identifyParams object.&amp;nbsp; As soon as I try to set this property, I get an error.&amp;nbsp; I am using it like this identifyParams.layerDefinitions[17]="user='test'".&amp;nbsp; If I just use the identifyParams and identifTask without that line like this, everything works fine.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;identifyTask = new IdentifyTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;" + domain + "/ArcGIS/rest/services/" + ServiceName + "/MapServer");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams = new IdentifyParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.tolerance = 5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.returnGeometry = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.layerIds = visibleLayers;&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; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_VISIBLE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using fiddler, I get an error "Unable to set property of undefined or null reference".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 23:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133834#M12463</guid>
      <dc:creator>GaryBilotta</dc:creator>
      <dc:date>2014-02-28T23:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: layerDefinitions property for identifyParams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133835#M12464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i was able to add the lines below and confirm things were working in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jssamples/find_popup.html" rel="nofollow" target="_blank"&gt;this&lt;/A&gt;&lt;SPAN&gt; sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;identifyParams.layerDefinitions = []; identifyParams.layerDefinitions[2] = "OBJECTID &amp;gt; 0"; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is your own service public?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 21:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133835#M12464</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-03-03T21:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: layerDefinitions property for identifyParams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133836#M12465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&amp;nbsp; Let me try clearing the layerDefinitions first and then set them, that is one thing I am doing differently.&amp;nbsp; Unfortunately, this is in development and not public yet.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133836#M12465</guid>
      <dc:creator>GaryBilotta</dc:creator>
      <dc:date>2014-03-03T22:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: layerDefinitions property for identifyParams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133837#M12466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, that seemed to do the trick.&amp;nbsp; If I don't setup the layerDefinitions array beforehand (identifyParams.layerDefinitions = [];), it doesn't work, but when I do, it does work.&amp;nbsp; I didn't realize I had to initialize the array first.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133837#M12466</guid>
      <dc:creator>GaryBilotta</dc:creator>
      <dc:date>2014-03-04T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: layerDefinitions property for identifyParams</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133838#M12467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;glad to hear you're sorted out Gary.&amp;nbsp; please consider marking this thread as 'answered'.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 17:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerdefinitions-property-for-identifyparams/m-p/133838#M12467</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-03-04T17:11:45Z</dc:date>
    </item>
  </channel>
</rss>

