<?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 Enforcing Upper Case text in attribute in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090510#M44636</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there an attribute rule or a setting in the egdb that would enforce that all text entered in an attribute field would be upper case - no matter how it was typed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 17:59:48 GMT</pubDate>
    <dc:creator>LorindaGilbert</dc:creator>
    <dc:date>2021-08-19T17:59:48Z</dc:date>
    <item>
      <title>Enforcing Upper Case text in attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090510#M44636</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Is there an attribute rule or a setting in the egdb that would enforce that all text entered in an attribute field would be upper case - no matter how it was typed?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 17:59:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090510#M44636</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2021-08-19T17:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Upper Case text in attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090547#M44645</link>
      <description>&lt;P&gt;In the code below, I concatenate a bunch of attributes and then use the proper() function to make the final text pretty.&amp;nbsp; Use the upper () function instead in line 12...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var values = [$feature.NAME, $feature.POSTTYPE, $feature.POSTDIR]
var combined_value = [];
// Loop through the field values and test if they are null or empty strings
// If they are not null or empty add them to an array
for (var i in values) {
    var value = values[i];
    if (IsEmpty(value)) continue;
    combined_value[Count(combined_value)] = value
}

// Return the field values concatenated with a space between
return proper(Concatenate(combined_value, " "));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This fires on Insert and Update.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 19:11:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090547#M44645</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-08-19T19:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Upper Case text in attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090613#M44652</link>
      <description>&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;This is the code that I used and published, but it wasn't giving me upper case text when I test in neither ArcPro nor in the web app.&amp;nbsp; I checked, the column name is proper name - Comments.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var cmts = $feature.Comments&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Upper(cmts)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return cmts;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So I changed it to be this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;var cmts = $feature.Comments&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return Upper(cmts);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And it worked - go figure.&lt;/P&gt;&lt;P&gt;Thanks for the validation that I was using the correct item, just slightly wrong syntax.&lt;/P&gt;&lt;P&gt;Lorinda&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 21:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090613#M44652</guid>
      <dc:creator>LorindaGilbert</dc:creator>
      <dc:date>2021-08-19T21:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Enforcing Upper Case text in attribute</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090628#M44658</link>
      <description>&lt;P&gt;In the the first sequence you haven't done anything to the original value of&amp;nbsp; your variable 'cmts'.&amp;nbsp; You do in the second sequence. Very cool.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var cmts = $feature.Comments

var Uc = Upper(cmts)

return Uc;&lt;/LI-CODE&gt;&lt;P&gt;Here I create a new variable and return it.&amp;nbsp; Not as cool. No need to create a variable because you use the object properties.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 21:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/enforcing-upper-case-text-in-attribute/m-p/1090628#M44658</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-08-19T21:36:14Z</dc:date>
    </item>
  </channel>
</rss>

