<?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: ArcGISDynamicMapServiceLayer LayerDefinitions 10.0 to 10.2 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680911#M63460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My original question here had the actual bug omitted from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The root cause of my error was that I used "!=" instead of "&amp;lt;&amp;gt;" for not equals in my layerDefs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are my test cases for those interested; there are a couple differences between 10.0 and 10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I removed the samples from each test but kept pass/fail &amp;amp; the key parts that differentiated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- TEST 1 &amp;amp; 2 are in the format sent by the REST API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I was using test 2 in my code which caused the issue for me (needed to switch to test 1 format)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I don't think I've included all cases, there are probably at least 2 tests I missed here that weren't relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;************************** &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; 10.0 TESTING ************************** TEST 1 - PASS (JavaScript API will send like this (using &amp;lt;&amp;gt; as operator))&amp;nbsp; TEST 2 - PASS (JavaScript API will send like this (using != as operator))&amp;nbsp; TEST 3 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "&amp;lt;&amp;gt;" )&amp;nbsp; TEST 4 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 5 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 6 - FAIL ( wrapped in curly braces, separated by commas, and not equals operator: "!=" )&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; 10.2 TESTING ************************** TEST 1 - PASS (JavaScript API will send like this (using &amp;lt;&amp;gt; as operator))&amp;nbsp; TEST 2 - FAIL (JavaScript API will send like this (using != as operator))&amp;nbsp; TEST 3 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "&amp;lt;&amp;gt;" )&amp;nbsp; TEST 4 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 5 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 6 - PASS ( wrapped in curly braces, separated by commas, and not equals operator: "!=" )&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 20:30:43 GMT</pubDate>
    <dc:creator>JamieSimko</dc:creator>
    <dc:date>2014-03-28T20:30:43Z</dc:date>
    <item>
      <title>ArcGISDynamicMapServiceLayer LayerDefinitions 10.0 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680910#M63459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are currently upgrading from a 10.0 to a 10.2 server and are having issues with one of our apps built in JavaScript. The JavaScript API is generating an export map call with layer definitions setup like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;6:(USERNAME = 'test');7:(USERNAME = 'test')&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which works fine in 10.0 but fails in 10.2. I looked at examples in the documents and found one &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt; which shows that the request should be sent with the parameter like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;{6:(USERNAME = 'test'),7:(USERNAME = 'test')}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Note that it is wrapped in curly braces and layers are separated by commas instead of semi-colons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To setup these definitions in the code all I did was (not the exact code):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var definitions = []; definitions[6] = '(USERNAME = 'test')'; definitions[7] = '(USERNAME = 'test')';&amp;nbsp; service.setLayerDefinitions(definitions);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody have any thoughts on what I might be doing wrong or if this could be a bug in the api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE: 10.0 api works with commas instead of semi-colons but fails when wrapped with curly braces. 10.2 only works with semi-colons and must be wrapped with curly braces&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Jamie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 18:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680910#M63459</guid>
      <dc:creator>JamieSimko</dc:creator>
      <dc:date>2014-03-20T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISDynamicMapServiceLayer LayerDefinitions 10.0 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680911#M63460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My original question here had the actual bug omitted from it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The root cause of my error was that I used "!=" instead of "&amp;lt;&amp;gt;" for not equals in my layerDefs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are my test cases for those interested; there are a couple differences between 10.0 and 10.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I removed the samples from each test but kept pass/fail &amp;amp; the key parts that differentiated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- TEST 1 &amp;amp; 2 are in the format sent by the REST API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I was using test 2 in my code which caused the issue for me (needed to switch to test 1 format)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I don't think I've included all cases, there are probably at least 2 tests I missed here that weren't relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;************************** &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; 10.0 TESTING ************************** TEST 1 - PASS (JavaScript API will send like this (using &amp;lt;&amp;gt; as operator))&amp;nbsp; TEST 2 - PASS (JavaScript API will send like this (using != as operator))&amp;nbsp; TEST 3 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "&amp;lt;&amp;gt;" )&amp;nbsp; TEST 4 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 5 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 6 - FAIL ( wrapped in curly braces, separated by commas, and not equals operator: "!=" )&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; 10.2 TESTING ************************** TEST 1 - PASS (JavaScript API will send like this (using &amp;lt;&amp;gt; as operator))&amp;nbsp; TEST 2 - FAIL (JavaScript API will send like this (using != as operator))&amp;nbsp; TEST 3 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "&amp;lt;&amp;gt;" )&amp;nbsp; TEST 4 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 5 - FAIL ( wrapped in curly braces, separated by semi-colons, and not equals operator: "!=" )&amp;nbsp; TEST 6 - PASS ( wrapped in curly braces, separated by commas, and not equals operator: "!=" )&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 20:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680911#M63460</guid>
      <dc:creator>JamieSimko</dc:creator>
      <dc:date>2014-03-28T20:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISDynamicMapServiceLayer LayerDefinitions 10.0 to 10.2</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680912#M63461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you ran into ESRI's new "standardized" SQL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can turn this off&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/41561"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/41561&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 12:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgisdynamicmapservicelayer-layerdefinitions-10-0/m-p/680912#M63461</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-03-31T12:24:41Z</dc:date>
    </item>
  </channel>
</rss>

