<?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 Relating Table A to Table D via Tables B and C in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1059057#M41055</link>
    <description>&lt;P&gt;Hey all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to relate a series of tables to each other.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table A is a list of documents&lt;/LI&gt;&lt;LI&gt;Table B is these documents and which plots of land they're relevant to (a many:many relationship)&lt;/LI&gt;&lt;LI&gt;Table C is the plots of land&lt;/LI&gt;&lt;LI&gt;Table D is the actual shapes for the land. Some parcels have been merged (So Parcel X and Parcel Y are in the same shape).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My strategy is to use Table B as the relationship class between A and C, then to relate C and D.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Step 1 works, Step 2 is where this falls apart.&amp;nbsp;&amp;nbsp;&lt;/STRIKE&gt;I looked at it again and I got the relationships working correctly.(5/19/21)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to streamline the process so when I click on record in Table A, I get taken to the appropriate records in Table D?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd be able to also click on the plots of land (Table D) and have the list of associated documents (Table A) appear in the pop-up as well.&lt;/P&gt;&lt;P&gt;If there are any tips or ideas, I'd really appreciate them.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 16:04:34 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2021-05-19T16:04:34Z</dc:date>
    <item>
      <title>Relating Table A to Table D via Tables B and C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1059057#M41055</link>
      <description>&lt;P&gt;Hey all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to relate a series of tables to each other.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table A is a list of documents&lt;/LI&gt;&lt;LI&gt;Table B is these documents and which plots of land they're relevant to (a many:many relationship)&lt;/LI&gt;&lt;LI&gt;Table C is the plots of land&lt;/LI&gt;&lt;LI&gt;Table D is the actual shapes for the land. Some parcels have been merged (So Parcel X and Parcel Y are in the same shape).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My strategy is to use Table B as the relationship class between A and C, then to relate C and D.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Step 1 works, Step 2 is where this falls apart.&amp;nbsp;&amp;nbsp;&lt;/STRIKE&gt;I looked at it again and I got the relationships working correctly.(5/19/21)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to streamline the process so when I click on record in Table A, I get taken to the appropriate records in Table D?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd be able to also click on the plots of land (Table D) and have the list of associated documents (Table A) appear in the pop-up as well.&lt;/P&gt;&lt;P&gt;If there are any tips or ideas, I'd really appreciate them.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 16:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1059057#M41055</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2021-05-19T16:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Relating Table A to Table D via Tables B and C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1073566#M42636</link>
      <description>&lt;P&gt;Try selecting this option in all tables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1624947507632.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17244i94259AB2BAAC16B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1624947507632.png" alt="JohannesLindner_0-1624947507632.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JohannesLindner_0-1624947507632.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To show the relevant documents in the popup, you could use something like this expression:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// load the tables
var table_a = FeatureSetByName($datastore, "TableA")
var table_b = FeatureSetByName($datastore, "TableB")
// I think you don't need C
//var table_c = FeatureSetByName($datastore, "TableC")

// Get the document ids
var plot_id = $feature.PlotID
var filtered_b = Filter(table_b, "PlotID = @plot_id")
if(filtered_b == null || Count(filtered_b) == 0) {
  return "No documents"
}

var doc_ids = []
for(var b in filtered_b) {
  Push(doc_ids, b.DocumentID)
}

// get the document paths
var filtered_a = Filter(table_a, "DocumentID IN &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/28818"&gt;@doc&lt;/a&gt;_ids")
if(filtered_b == null || Count(filtered_b) == 0) {
  return "No documents"
}

var docs = []
for(var a in filtered_a) {
  Push(docs, a.DocumentPath)
}

// return paths
return Concatenate(docs, TextFormatting.NewLine)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1073566#M42636</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-06-29T06:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Relating Table A to Table D via Tables B and C</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1081143#M43549</link>
      <description>&lt;P&gt;Thanks for replying to this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took some figuring out, but this worked great.&amp;nbsp; A lesson for anyone else who has this problem in the future: your fields must be numbers, not strings, for the filters to work.&lt;/P&gt;&lt;P&gt;I'm running into the problem of when it tries to draw from a field with hyperlinks, it won't return anything. I'm going to make a separate question for that, though.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Edit 7/22/21:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/using-arcade-to-return-a-hyperlink-from-another/m-p/1081857#M43623" target="_blank" rel="noopener"&gt;Solved: Re: Using Arcade to return a hyperlink from anothe... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Edit 8/12/21:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/bringing-up-selected-records-in-a-popup-sorted-by/m-p/1088302/highlight/true#M44375" target="_blank" rel="noopener"&gt;Sorting the output by Parcel Name&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 23:56:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/relating-table-a-to-table-d-via-tables-b-and-c/m-p/1081143#M43549</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2021-08-12T23:56:55Z</dc:date>
    </item>
  </channel>
</rss>

