<?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>idea Copy number formats across multiple fields in Fields menu in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idi-p/1023864</link>
    <description>&lt;P&gt;When going into Attributes Tables&amp;gt;Fields, the Number format can be edited (Numeric, Percentage, Currency, Rate, ...). Each chosen type has plenty of useful options (number of decimal values, show thousands separators, etc...).&lt;/P&gt;&lt;P&gt;In most cases, once a specific setting has been defined, it would apply to many fields.&lt;/P&gt;&lt;P&gt;It would be great to be able to copy a given Number format and be able to apply it to multiple fields afterwards.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 14:12:26 GMT</pubDate>
    <dc:creator>MattPBr_app</dc:creator>
    <dc:date>2021-02-05T14:12:26Z</dc:date>
    <item>
      <title>Copy number formats across multiple fields in Fields menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idi-p/1023864</link>
      <description>&lt;P&gt;When going into Attributes Tables&amp;gt;Fields, the Number format can be edited (Numeric, Percentage, Currency, Rate, ...). Each chosen type has plenty of useful options (number of decimal values, show thousands separators, etc...).&lt;/P&gt;&lt;P&gt;In most cases, once a specific setting has been defined, it would apply to many fields.&lt;/P&gt;&lt;P&gt;It would be great to be able to copy a given Number format and be able to apply it to multiple fields afterwards.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idi-p/1023864</guid>
      <dc:creator>MattPBr_app</dc:creator>
      <dc:date>2021-02-05T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy number formats across multiple fields in Fields menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1026170#M15182</link>
      <description>&lt;P&gt;Yes Please!! Also could we also have a corresponding Arcpy command to do this in a script!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 05:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1026170#M15182</guid>
      <dc:creator>LeandraGordon</dc:creator>
      <dc:date>2021-02-12T05:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy number formats across multiple fields in Fields menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1045851#M15684</link>
      <description>&lt;P&gt;I have successfully managed to edit the numberFormats using &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;Python CIM access&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;so it should be possible to do this in a Python Toolbox with the Layer Name and the Field Name as inputs:&lt;BR /&gt;&lt;BR /&gt;e.g:&lt;BR /&gt;-----------------------------------------------------------------------------&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;currentProject = arcpy.mp.ArcGISProject("CURRENT")&lt;BR /&gt;currentMap = currentProject.listMaps()[0]&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #I think this assumes there is only one map&lt;BR /&gt;layers = currentMap.listLayers()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;for layer in layers:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;lyrCIM = layer.getDefinition('V2')&lt;BR /&gt;&lt;BR /&gt;if layer.name == INPUT_LYR:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lyrCIM.showPopups = True&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Modify the display of numeric fields&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for fd in lyrCIM.featureTable.fieldDescriptions:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;if fd.fieldName == INPUT_FIELD:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; fdNumFmt = fd.numberFormat&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; fdNumFmt.useSeparator = True&amp;nbsp; #Use a comma as a thousands separator&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;layer.setDefinition(lyrCIM)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;currentProject.save&lt;BR /&gt;---------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 09:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1045851#M15684</guid>
      <dc:creator>LeandraGordon</dc:creator>
      <dc:date>2021-04-12T09:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy number formats across multiple fields in Fields menu - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1088985#M16805</link>
      <description />
      <pubDate>Fri, 13 Aug 2021 17:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1088985#M16805</guid>
      <dc:creator>JonathanMurphy</dc:creator>
      <dc:date>2021-08-13T17:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copy number formats across multiple fields in Fields menu</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1588410#M33913</link>
      <description>&lt;P&gt;Consdier quicker please &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 02:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/copy-number-formats-across-multiple-fields-in/idc-p/1588410#M33913</guid>
      <dc:creator>LukeT</dc:creator>
      <dc:date>2025-02-24T02:39:24Z</dc:date>
    </item>
  </channel>
</rss>

