<?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: Feature Layer and Print Task in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487859#M45378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the note regarding the definition expression. Its good to know there is no limitation here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2015 14:35:51 GMT</pubDate>
    <dc:creator>GregKnight1</dc:creator>
    <dc:date>2015-12-18T14:35:51Z</dc:date>
    <item>
      <title>Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487855#M45374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue with printing using the ExportWebMap service as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I print the map, the printed content is not the same as the content displayed in the map application.&amp;nbsp; Specifically, I am getting features from my feature layer displayed on the printed output which don't appear in the map application.&amp;nbsp; I am using a feature layer and a definition expression -- which I am setting in my application.&amp;nbsp; The definition is respected in the application, but I am picking up what seem to be random additional features which don't meet the definition expression in the printed output.&amp;nbsp; In fact, I can see these in the WebMapAsJson in the browser which is sent to the print service.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In troubleshooting, I moved the definition expression to the map/feature service.&amp;nbsp; Again, the expression is respected in the raw service, in my application, but not in the printed output.&amp;nbsp; I am still getting seemingly random features in my map output that aren't included in my map application.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other thing that might be a factor here is that in the WebMapAsJson, the erroneous/extra features do not contain the attribute which I am using for rendering (that is, the feature attribute object doesn't contain the attribute I am using for rendering). This is because I am adding this on the client side in my application.&amp;nbsp; So the feature isnt being rendered on the client, but it is being rendered in the printed output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone provide any insight as to how I might address this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 15:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487855#M45374</guid>
      <dc:creator>GregKnight</dc:creator>
      <dc:date>2015-12-16T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487856#M45375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little more information here...&amp;nbsp; It seems that if my definition expression is relatively short (e.g. "BL_ID in ('0001','0002','0003'), the output matches the map in my application.&amp;nbsp; If the definition expression is relatively long (e.g. 70ish building IDs), the the output fails.&amp;nbsp; I am not sure where things start to go sideways.&amp;nbsp; Is there a character limitation of the definition expression?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 16:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487856#M45375</guid>
      <dc:creator>GregKnight</dc:creator>
      <dc:date>2015-12-16T16:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487857#M45376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regarding your definition expression, I tried it with 100 unique IDs on one of my map services, totaling 951 chars. The export/print service honored the definition expression without any issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487857#M45376</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-12-16T20:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487858#M45377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some more info about my set-up, I'm doing something similar to you, I think - essentially, similar to &lt;A href="https://developers.arcgis.com/javascript/jssamples/data_gas_prices.html" title="https://developers.arcgis.com/javascript/jssamples/data_gas_prices.html"&gt;Gas price data by state mashup | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an existing FeatureLayer "template" that I mash-up with JSON data from a SQL query (using shared PKs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I'm simply setting a renderer, adding my data field to the definition expression is not honored. I haven't tried this, but I think joining the data with a dynamic layer would work such that a definition expression is honored on the data fields not in the map service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/159664"&gt;Using join data source as source for feature layer&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/86231"&gt;simple example of making a join in a dynamic layer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 20:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487858#M45377</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-12-16T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487859#M45378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the note regarding the definition expression. Its good to know there is no limitation here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 14:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487859#M45378</guid>
      <dc:creator>GregKnight1</dc:creator>
      <dc:date>2015-12-18T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer and Print Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487860#M45379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like we are doing something very similar.&amp;nbsp; I am in fact mashing up some local data with a feature layer using shared PKs.&amp;nbsp; I think the problem with the renderer arises when some of the features dont have any local data.&amp;nbsp; This doesnt seem to cause a problem when rendering on the client, but it does appear to cause a problem when the WebMapJSON is sent to the print task. If the feauture doesnt contain the renderer attribute, it seems a default of zero is assumed on the server side.&amp;nbsp; I dont want to provide a default value of say zero, as I am using a class break renderer where zero is a valid data value.&amp;nbsp; Maybe I need to drop in null/NULL here?&amp;nbsp; I will take a closer look at the sample/references you provided.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 14:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-and-print-task/m-p/487860#M45379</guid>
      <dc:creator>GregKnight1</dc:creator>
      <dc:date>2015-12-18T14:42:49Z</dc:date>
    </item>
  </channel>
</rss>

