<?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: Formatting number field for GP Service in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93391#M3576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - many thanks Jake, that does the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still curious why it displayed correctly in ArcMap running the tool, but differently when run as a GP Service, since the properties of the field is explicitly set to be 2 decimal places.&lt;/P&gt;&lt;P&gt;Custom GP services are fickle things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2019 14:44:00 GMT</pubDate>
    <dc:creator>AllenScully</dc:creator>
    <dc:date>2019-06-13T14:44:00Z</dc:date>
    <item>
      <title>Formatting number field for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93389#M3574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a GP service where the last step is to add a field (DOUBLE, holds 2 decimal places) - and does a field calculation.&amp;nbsp; It's going from feet to miles - we only want to display 2 decimal places - so .34 miles instead of .34125823672... for example.&lt;/P&gt;&lt;P&gt;All works correctly running the tool in ArcMap - the output dataset is an in_memory feature layer, with the correct properties in the calculated miles field.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the tool through a GP Widget in WAB (Portal, 10.6) - the field in question displays all of the decimal places - not respecting what was set in the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way to enforce this in the Widget config (nothing obvious I could see) or tool config in arcmap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 17:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93389#M3574</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2019-06-12T17:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting number field for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93390#M3575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Allen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you update the Field Calculation and use Python to round the calculation (i.e.&amp;nbsp;&lt;STRONG&gt;round(val, 2)&lt;/STRONG&gt;) to two decimal values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 23:51:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93390#M3575</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-06-12T23:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting number field for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93391#M3576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - many thanks Jake, that does the trick.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still curious why it displayed correctly in ArcMap running the tool, but differently when run as a GP Service, since the properties of the field is explicitly set to be 2 decimal places.&lt;/P&gt;&lt;P&gt;Custom GP services are fickle things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 14:44:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/formatting-number-field-for-gp-service/m-p/93391#M3576</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2019-06-13T14:44:00Z</dc:date>
    </item>
  </channel>
</rss>

