<?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: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both! in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843015#M21358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be better addressed by &lt;A href="https://community.esri.com/space/2121"&gt;Operations Dashboard for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2019 21:46:05 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2019-10-28T21:46:05Z</dc:date>
    <item>
      <title>Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843013#M21356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hello, I am called Alain Roland Munyaneza. I continue to have an issue with how to get the data from the related table came from the repeat table table in survey123. I tried to follow similar arcade expressions from questions that were asked here from GeoNet but I do not get the fields! In fact, I have two separate tables that I want to show in each table the data that are in. I have one table for owners and another for areas. I want all these data in pop-up. For the first table, I want to the Owner first name and the Owner Family Name. I tried to use the FeatureSetbyRelationshipName function but it doesn't give out. I tried to use too FeatureSetbyName and FeatureSetbyID but all&amp;nbsp; I do not get. When I follow the example given here for arcade, I put ParentGlobalID for the parent layer and GlobalID for the table but it doesn't work. Does anyone guide me how to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2019 10:33:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843013#M21356</guid>
      <dc:creator>AlainMunyaneza1</dc:creator>
      <dc:date>2019-10-27T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843014#M21357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this label and it is showing in pop-up&amp;nbsp; but not in dashboard. What is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var results = $feature["globalid"];&lt;/P&gt;&lt;P&gt;var sql = "parentglobalid = '{" + Upper(results) + "}'";&lt;/P&gt;&lt;P&gt;Console(sql);&lt;/P&gt;&lt;P&gt;var tbl = FeatureSetByName($map,"service_71239bb2bb8c4d13a46fa8f038cceec6 - Owners");&lt;/P&gt;&lt;P&gt;var related_data = Filter(tbl, sql);&lt;/P&gt;&lt;P&gt;var cnt = Count(related_data);&lt;/P&gt;&lt;P&gt;var result = cnt + " related records";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (cnt &amp;gt; 0) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var row in related_data) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var line = TextFormatting.NewLine + row.OwnerFirstName + " " + row.OwnerFamilyName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result += line;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = "No related records:";&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return result;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2019 23:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843014#M21357</guid>
      <dc:creator>AlainMunyaneza1</dc:creator>
      <dc:date>2019-10-27T23:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843015#M21358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be better addressed by &lt;A href="https://community.esri.com/space/2121"&gt;Operations Dashboard for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 21:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843015#M21358</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-10-28T21:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843016#M21359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could you changing to upper case on the globalid?&amp;nbsp; Not sure why that would be needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also check the name of the layer.&amp;nbsp; Try remaming it in the map to a shorter name like just Owners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also clean up the code a bit by writing this way.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var sql &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PlotKey = '"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; $feature&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PlotKey &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
var tbl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$map&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"GAP"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sql&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

var txt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;var f in &lt;SPAN class="token function"&gt;OrderBy&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;tbl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"LineNumber"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    txt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; txt &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LineNumber &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;' '&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
txt &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Count&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'1 2 3'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n----Gap Line Number Issue! Found: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; txt
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option is to create a relationship class in your service between the two.&amp;nbsp; Then the Pop up attribute box will have all the related records there for you automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843016#M21359</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-12-12T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843017#M21360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, James &amp;amp; Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It accepted after with another trial but Thanks all for your directions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 08:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/843017#M21360</guid>
      <dc:creator>AlainMunyaneza1</dc:creator>
      <dc:date>2019-10-30T08:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ask about the Related table came from the repeat table in Survey123 for ArcGIS, How to show its data in pop-up?String fields or numeric,both!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/1007831#M31503</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;var tbl = FeatureSetByName(&lt;FONT color="#000000"&gt;&lt;STRONG&gt;$map&lt;/STRONG&gt;&lt;/FONT&gt;,"service_71239bb2bb8c4d13a46fa8f038cceec6 - Owners");&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/210182"&gt;@AlainMunyaneza1&lt;/a&gt;&amp;nbsp;I think you need to use the &lt;STRONG&gt;&lt;EM&gt;$datastore&lt;/EM&gt;&lt;/STRONG&gt; global to pull S123 repeats/related records into your arcade. Similar to this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amanda__Huber_0-1607457926680.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1709iE199FC326C854A8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Amanda__Huber_0-1607457926680.png" alt="Amanda__Huber_0-1607457926680.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helps and works for you too!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 20:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/ask-about-the-related-table-came-from-the-repeat/m-p/1007831#M31503</guid>
      <dc:creator>Amanda__Huber</dc:creator>
      <dc:date>2020-12-08T20:05:59Z</dc:date>
    </item>
  </channel>
</rss>

