<?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 Issue querying parcel data for display in an infoWindow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-querying-parcel-data-for-display-in-an/m-p/79187#M7243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm attempting to query a parcel layer and display the information in a popup infoWindow when I click on a parcel, and I'm having some issues dealing with different datatypes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var content = "&amp;lt;b&amp;gt;Address&amp;lt;/b&amp;gt;: ${ADDR}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Owner Name&amp;lt;/b&amp;gt;: ${OWNER}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Parcel ID&amp;lt;/b&amp;gt;: ${APN}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;City&amp;lt;/b&amp;gt;: ${CITY}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Acres&amp;lt;/b&amp;gt;: ${TOTAL_ACRES:NumberFormat}" + " &amp;lt;br /&amp;gt;&amp;lt;a href='${COUNTY_LINK}'&amp;gt;County Assessor Site&amp;lt;/a&amp;gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp; var popUpTemplate = new esri.InfoTemplate("Parcel", content);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ADDR, OWNER, APN, COUNTY_LINK and CITY datatypes are all string so they appear in the infoWindow without issue, but I'm having trouble getting TOTAL_ACRES to appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TOTAL_ACRES is a double, and i thought that using the dojo.number.format method as outlined in the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_formatinfowindow" rel="nofollow" target="_blank"&gt;documention&lt;/A&gt;&lt;SPAN&gt; would help, but it doesn't seem to do anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've included some screetshots of the data in arcmap, in case that can be of any help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22357[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22358[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2013 21:30:42 GMT</pubDate>
    <dc:creator>AlexGilvarry</dc:creator>
    <dc:date>2013-03-04T21:30:42Z</dc:date>
    <item>
      <title>Issue querying parcel data for display in an infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-querying-parcel-data-for-display-in-an/m-p/79187#M7243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm attempting to query a parcel layer and display the information in a popup infoWindow when I click on a parcel, and I'm having some issues dealing with different datatypes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var content = "&amp;lt;b&amp;gt;Address&amp;lt;/b&amp;gt;: ${ADDR}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Owner Name&amp;lt;/b&amp;gt;: ${OWNER}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Parcel ID&amp;lt;/b&amp;gt;: ${APN}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;City&amp;lt;/b&amp;gt;: ${CITY}" + "&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Acres&amp;lt;/b&amp;gt;: ${TOTAL_ACRES:NumberFormat}" + " &amp;lt;br /&amp;gt;&amp;lt;a href='${COUNTY_LINK}'&amp;gt;County Assessor Site&amp;lt;/a&amp;gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp; var popUpTemplate = new esri.InfoTemplate("Parcel", content);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ADDR, OWNER, APN, COUNTY_LINK and CITY datatypes are all string so they appear in the infoWindow without issue, but I'm having trouble getting TOTAL_ACRES to appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TOTAL_ACRES is a double, and i thought that using the dojo.number.format method as outlined in the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#intro_formatinfowindow" rel="nofollow" target="_blank"&gt;documention&lt;/A&gt;&lt;SPAN&gt; would help, but it doesn't seem to do anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've included some screetshots of the data in arcmap, in case that can be of any help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22357[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]22358[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 21:30:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-querying-parcel-data-for-display-in-an/m-p/79187#M7243</guid>
      <dc:creator>AlexGilvarry</dc:creator>
      <dc:date>2013-03-04T21:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue querying parcel data for display in an infoWindow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-querying-parcel-data-for-display-in-an/m-p/79188#M7244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: evtguy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My (successful) use of dojo.number.format is something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;dojo.number.format(spanishPct, {places:2})&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option might be using javascript's toFixed() method on the variable containing your acres value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; alert('Size in acres: ' + theAcres.toFixed(2)); //format number to only 2 decimal places&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 21:40:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/issue-querying-parcel-data-for-display-in-an/m-p/79188#M7244</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-03-04T21:40:19Z</dc:date>
    </item>
  </channel>
</rss>

