<?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: Popups: Sort related records? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415275#M82381</link>
    <description>&lt;P&gt;Submitted:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/sort-related-records-in-pop-ups/idi-p/1415274/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Sort related records in pop-ups - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 13:06:35 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-04-25T13:06:35Z</dc:date>
    <item>
      <title>Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1414797#M82325</link>
      <description>&lt;P&gt;I have a point feature class which participates in a 1:M relationship with a table.&lt;/P&gt;&lt;P&gt;The popup is set up to show the related table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_1-1713972063480.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102010iEE29CB3DBB453686/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_1-1713972063480.png" alt="AlfredBaldenweck_1-1713972063480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The issue is that the records are displayed according to OBJECTID (That is, the record for 2012 was created before the record for 2011).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_3-1713972151436.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102013iE81153B7CF5332CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_3-1713972151436.png" alt="AlfredBaldenweck_3-1713972151436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way return the related records sorted by another field?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 15:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1414797#M82325</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-04-24T15:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415265#M82379</link>
      <description>&lt;P&gt;If you submit an idea for this, I’d vote for it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 12:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415265#M82379</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-25T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415275#M82381</link>
      <description>&lt;P&gt;Submitted:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/sort-related-records-in-pop-ups/idi-p/1415274/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Sort related records in pop-ups - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415275#M82381</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-04-25T13:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415280#M82383</link>
      <description>&lt;P&gt;Could you create a query layer or database view, and do this in the SQL?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use ORDER BY to sort on the required field. Do this in an subquery (inner query). Exclude the OBJECTID column from the SELECT clause.&lt;/LI&gt;&lt;LI&gt;In an outer query, generate a fake OBJECTID column using a mechanism like Oracle’s ROWNUM pseudocolum, or your database’s equivalent.&lt;/LI&gt;&lt;LI&gt;Use the fake OBJECTID as the unique ID in the query layer or database view in Pro.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Maybe Pro would sort on the fake OBJECTID column in the popup, which is the sort order you wanted: sorting on your other field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415280#M82383</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-04-25T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415292#M82384</link>
      <description>&lt;P&gt;I'm sure it should be possible, but here are two pretty big issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Waaay more work than I want to take care of&lt;OL&gt;&lt;LI&gt;Query layers are a pain, and we both know the current way to set up views is horrible given how &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/improve-sql-expression-builder/idi-p/931226" target="_blank" rel="noopener"&gt;plain the text editor&lt;/A&gt; is in CreateView()&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Only solves the issue for GDB feature classes*; you couldn't do it in a shapefile, for example. In this case, I'm using a relationship class; frequently it's just using a relate.&lt;OL&gt;&lt;LI&gt;Actually, the Query Layer part is only useful for eGDBs&lt;/LI&gt;&lt;LI&gt;fGDBs can take care of Views, at least, but see point #1.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I think for a more permanent dataset, like the one in my example (which does actually live in an eGDB), a view or query layer would probably do the trick the way you outlined it (Will probably give it a shot later today). But the goal is to just have this out of the box.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Esri I know it's 20 years too late but please give us an easy vocabulary word for feature classes in geodatabases. I like "GDBFC" since it kind of rolls off the tongue and then you and prefix it with what type of GDB it is --&amp;gt; fGDBCFC, eGDBFC, etc. Either way, the lack of a decent vocabulary word is keenly felt; everyone keeps calling all vector data a shapefile (it's not) or a layer (definitely not), or just plain "geodatabase" (ABSOLUTELY NOT) and it makes having a conversation with users really hard because I have to figure out what they actually mean when they say a word.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 13:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415292#M82384</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-04-25T13:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415315#M82387</link>
      <description>&lt;P&gt;You might want to experiment with the commands found here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scott_Harris_0-1714055452139.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/102143iB77C7C74D82F9E4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Scott_Harris_0-1714055452139.png" alt="Scott_Harris_0-1714055452139.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sort order seems to be remembered for me when re-opening the project.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 15:06:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415315#M82387</guid>
      <dc:creator>Scott_Harris</dc:creator>
      <dc:date>2024-04-25T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Popups: Sort related records?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415339#M82389</link>
      <description>&lt;P&gt;That appears to have worked and I think I can save it as a layer file.&lt;/P&gt;&lt;P&gt;The sort Asc/Desc appears to be dependent on the display settings in the layer/view, so by editing that you can pick which field(s) to sort by. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 15:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/popups-sort-related-records/m-p/1415339#M82389</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-04-25T15:01:08Z</dc:date>
    </item>
  </channel>
</rss>

