<?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: Attribute Rule -Concatenate joins in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044337#M7100</link>
    <description>&lt;P&gt;here's an example of one that I use:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Specify the fields to concatenate

var values = [$feature.PreDir, $feature.StreetName, $feature.SufType, $feature.SufDir]
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 Concatenate(combined_value, " ");&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 06 Apr 2021 19:38:34 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-04-06T19:38:34Z</dc:date>
    <item>
      <title>Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044267#M7098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have arcgis pro 2.7.2 and sde. I need to concatenate two fields in same feature class. I found a few samples from geonet. i tested it on my end by using attribute rule but it is not working. can you please assist? thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexP__0-1617732314360.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10195iC2866347704CC31E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexP__0-1617732314360.png" alt="AlexP__0-1617732314360.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexP__1-1617733048087.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10198i368E55D629A8427B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexP__1-1617733048087.png" alt="AlexP__1-1617733048087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 18:20:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044267#M7098</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2021-04-06T18:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044321#M7099</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Concatenate()&lt;/STRONG&gt; function works for me. Double-click the function and fieldnames from above list to insert into the expression. Don't type it up.&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Concatenate($feature.Field1, " ", $feature.Field2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$feature.Field1+" "+$feature.Field2&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044321#M7099</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-04-06T19:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044337#M7100</link>
      <description>&lt;P&gt;here's an example of one that I use:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Specify the fields to concatenate

var values = [$feature.PreDir, $feature.StreetName, $feature.SufType, $feature.SufDir]
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 Concatenate(combined_value, " ");&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Apr 2021 19:38:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044337#M7100</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-04-06T19:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044352#M7101</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3374"&gt;@JoeBorgione&lt;/a&gt;&amp;nbsp;Thank you for the information.&amp;nbsp; If I am understanding correctly, it looks like it will accept with null or no null during &lt;SPAN&gt;concatenate&lt;/SPAN&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044352#M7101</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2021-04-06T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044354#M7102</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95280"&gt;@JayantaPoddar&lt;/a&gt;&amp;nbsp; Thank you for the information. what about if it is null?&amp;nbsp; does it still show space like " " if it is null next to it?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044354#M7102</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2021-04-06T20:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rule -Concatenate joins</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044357#M7103</link>
      <description>&lt;P&gt;You make a list of all the fields you want to concatenate; then step through that list, and if a given field is empty or null, you do not concatenate that into the returned output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rule-concatenate-joins/m-p/1044357#M7103</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-04-06T20:17:24Z</dc:date>
    </item>
  </channel>
</rss>

