<?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: Exception using AGSCalloutTemplate when a numeric field is used in the template s in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429975#M3694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're welcome. The user-ESRI connection is what make this whole thing work. I appreciate you guys tackling it. Have a nice day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 May 2010 12:31:13 GMT</pubDate>
    <dc:creator>ChanceYohman</dc:creator>
    <dc:date>2010-05-04T12:31:13Z</dc:date>
    <item>
      <title>Exception using AGSCalloutTemplate when a numeric field is used in the template str</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429973#M3692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After clicking a feature for a callout, the program yields this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:27.838 GraphicsDemo[7772:207] countyTemplate's textTemplate: (null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:27.838 GraphicsDemo[7772:207] countyTemplate's textTemplate: ${NAME}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:27.840 GraphicsDemo[7772:207] countyTemplate's detailTemplate: (null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:27.841 GraphicsDemo[7772:207] countyTemplate's detailTemplate: '90: ${POP1990}, '99: ${POP1999}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:31.494 GraphicsDemo[7772:207] *** -[NSDecimalNumber length]: unrecognized selector sent to instance 0x3bb99f0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:31.495 GraphicsDemo[7772:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSDecimalNumber length]: unrecognized selector sent to instance 0x3bb99f0'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2010-04-30 15:01:31.495 GraphicsDemo[7772:207] Stack: (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31122523,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2507121929,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31504443,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31073910,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30926530,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30652085,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31049491,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80337,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43803,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 856506,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30907072,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30903368,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 39212941,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 39213138,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3346435,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11480,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11334&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code in question is on lines 244-255 of GraphicsDemoViewController.m&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
AGSCalloutTemplate *countyTemplate = [[AGSCalloutTemplate alloc] init];
NSLog(@"countyTemplate's textTemplate: %@", [countyTemplate textTemplate]);
[countyTemplate setTextTemplate:@"${NAME}"];
NSLog(@"countyTemplate's textTemplate: %@", [countyTemplate textTemplate]);
NSLog(@"countyTemplate's detailTemplate: %@", [countyTemplate detailTemplate]);
[countyTemplate setDetailTemplate:@"'90: ${POP1990}, '99: ${POP1999}"]; //This is the offending line.
NSLog(@"countyTemplate's detailTemplate: %@", [countyTemplate detailTemplate]);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To see that the problem is the inclusion of a numeric field in the template string, either comment out the offending line or replace the numeric fields with string fields, e.g. ${NAME}.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug or am I doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Please replace the GraphicsDemoViewController.m with the attached file (after changing the suffix from .txt to .m). I tried attaching the zip file, but it won't let upload it! It's under the maximum size!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 18:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429973#M3692</guid>
      <dc:creator>ChanceYohman</dc:creator>
      <dc:date>2010-04-30T18:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception using AGSCalloutTemplate when a numeric field is used in the template s</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429974#M3693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately, you've run into a bug. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting it. We'll have it straightened out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Divesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 16:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429974#M3693</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2010-05-03T16:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception using AGSCalloutTemplate when a numeric field is used in the template s</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429975#M3694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're welcome. The user-ESRI connection is what make this whole thing work. I appreciate you guys tackling it. Have a nice day.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 May 2010 12:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-using-agscallouttemplate-when-a-numeric/m-p/429975#M3694</guid>
      <dc:creator>ChanceYohman</dc:creator>
      <dc:date>2010-05-04T12:31:13Z</dc:date>
    </item>
  </channel>
</rss>

