<?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>idea Ability to Read Related Table Arcade Expressions in Custom Attribute Displays in ArcGIS Field Maps Ideas</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idi-p/1030252</link>
    <description>&lt;P&gt;I have a point feature with a related inspection table that is a one to many relationship.&amp;nbsp; I want to be able to reference values in the related table and pass them to survey123 via a custom URL.&amp;nbsp; I'm able to create a custom attribute expression to get the values I need in ArcOnline.&amp;nbsp; But when I try to access the attribute expressions values or incorporate them into a Custom URL to pass to survey123, I'm unable to.&amp;nbsp; Specifically I need to be able to use the FeatureByName function in field maps/collector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the custom attribute expression I'm using to pull the most recent inspection data.&amp;nbsp; I then reference the custom attribute in a custom URL to pass the data to Survey123.&amp;nbsp; It functions perfectly if I use a browser and open the pop up there, but when opening the popup in the apps, it gives me 0s or errors. I'd love for this to function in Field Maps or Collector.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var sql = "FACILITYID = '"+$feature.FACILITYID + "'";
var tbl = Filter(FeatureSetByName($map,"pumpstation_gdb - PumpStationinspection"), sql)

if ((Count(tbl))==0) {
    return "no records found"
}
else {
    return First(OrderBy(tbl, 'REPDATE DESC')).H2OLEV
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is more detailed info on what I was trying to do with the script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-an-arcade-expression-to-show-most-recent-related/m-p/1030220#M32719" target="_blank"&gt;Solved: Re: How to create an arcade expression to show mos... - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 22:31:13 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-02-24T22:31:13Z</dc:date>
    <item>
      <title>Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idi-p/1030252</link>
      <description>&lt;P&gt;I have a point feature with a related inspection table that is a one to many relationship.&amp;nbsp; I want to be able to reference values in the related table and pass them to survey123 via a custom URL.&amp;nbsp; I'm able to create a custom attribute expression to get the values I need in ArcOnline.&amp;nbsp; But when I try to access the attribute expressions values or incorporate them into a Custom URL to pass to survey123, I'm unable to.&amp;nbsp; Specifically I need to be able to use the FeatureByName function in field maps/collector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the custom attribute expression I'm using to pull the most recent inspection data.&amp;nbsp; I then reference the custom attribute in a custom URL to pass the data to Survey123.&amp;nbsp; It functions perfectly if I use a browser and open the pop up there, but when opening the popup in the apps, it gives me 0s or errors. I'd love for this to function in Field Maps or Collector.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var sql = "FACILITYID = '"+$feature.FACILITYID + "'";
var tbl = Filter(FeatureSetByName($map,"pumpstation_gdb - PumpStationinspection"), sql)

if ((Count(tbl))==0) {
    return "no records found"
}
else {
    return First(OrderBy(tbl, 'REPDATE DESC')).H2OLEV
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is more detailed info on what I was trying to do with the script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/how-to-create-an-arcade-expression-to-show-most-recent-related/m-p/1030220#M32719" target="_blank"&gt;Solved: Re: How to create an arcade expression to show mos... - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 22:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idi-p/1030252</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-24T22:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030301#M87</link>
      <description>&lt;P&gt;Hi Katie,&lt;/P&gt;&lt;P&gt;You've actually found a bug - the FeatureSetByName function is supported in Field Maps but it currently does not work when it is referencing a table, it only works when referencing another feature layer. It is slated to be fixed in an upcoming release.&lt;/P&gt;&lt;P&gt;In the meantime, FeatureSetByRelationshipName will work to pull results from a related table. This expression will return the records that are related to the feature you select, so you won't need to include the sql variable as a filter.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 00:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030301#M87</guid>
      <dc:creator>ChrisDunn1</dc:creator>
      <dc:date>2021-02-25T00:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030376#M88</link>
      <description>&lt;P&gt;I've just run into similar problems with ArcGIS Enterprise 10.8.1. I have four separate attribute expressions set up which make use of FeatureSetByName. They all just look in another (point) layer in the map to return some info.&amp;nbsp; Work perfectly in the browser but then in Field Maps iOS client only one of them returns a value. The Arcade code is identical in each expression except for different field names that they return.&lt;/P&gt;&lt;P&gt;Example in browser&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GarethBaker1_1-1614242610345.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6883i304FA9DA0B745CB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GarethBaker1_1-1614242610345.png" alt="GarethBaker1_1-1614242610345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same record in Field Maps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GarethBaker1_0-1614243105255.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6885iB578B1FD8056AE7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GarethBaker1_0-1614243105255.png" alt="GarethBaker1_0-1614243105255.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>Thu, 25 Feb 2021 08:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030376#M88</guid>
      <dc:creator>GarethBaker1</dc:creator>
      <dc:date>2021-02-25T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030446#M89</link>
      <description>&lt;P&gt;I am looking up 20 different variables from another layer and they all work.&amp;nbsp; Weird.&lt;/P&gt;&lt;P&gt;I did find a bug where if you give it a field list it will not work.&amp;nbsp; Must use * or nothing.&lt;/P&gt;&lt;P&gt;var sql = "PointID = '" + $feature.PointID + "'";&lt;BR /&gt;var tbl = Filter(FeatureSetByName($map,"Points", ["*"], false), sql);&lt;BR /&gt;return First(tbl).DesignLat&lt;/P&gt;&lt;P&gt;I have also talked to the team about fixing the built in relationship values.&amp;nbsp; That would be way easier but they have not worked in a long time.&amp;nbsp; &amp;nbsp;Should not even need code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1614263321003.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6899i504A6DF4F1ED6DDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1614263321003.png" alt="DougBrowning_0-1614263321003.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030446#M89</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-02-25T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030552#M90</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;I was trying to be efficient by only pulling back the fields that I needed but have changed it to return all fields and my expressions are now working in Field Maps&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing the info about the bug - hopefully can get fixed soon.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 17:25:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030552#M90</guid>
      <dc:creator>GarethBaker1</dc:creator>
      <dc:date>2021-02-25T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030847#M91</link>
      <description>&lt;P&gt;Yep I did the same thing to reduce the size of the call since I'm calling so many.&amp;nbsp; One thing that helped is adding the geometry false as you can see in my statement.&lt;/P&gt;&lt;P&gt;My pop-up is now rather slow when online but offline it's super fast and we're normally offline so it's okay.&lt;/P&gt;&lt;P&gt;I just reported the error in the last month but it was directly to the team.&amp;nbsp; Hopefully not too long.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Glad I could help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 00:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1030847#M91</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-02-26T00:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1031105#M93</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;- are you seeing the bug on both iOS and Android? I am able to reproduce it on iOS but not on Android so I wanted to verify that is what you're seeing as well.&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 19:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1031105#M93</guid>
      <dc:creator>ChrisDunn1</dc:creator>
      <dc:date>2021-02-26T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ability to Read Related Table Arcade Expressions in Custom Attribute Displays</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1031497#M95</link>
      <description>&lt;P&gt;I am seeing the same issue on both Android and iOS.&amp;nbsp; For my lat pull over all I get is 0 on both.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-ideas/ability-to-read-related-table-arcade-expressions/idc-p/1031497#M95</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-03-01T14:41:45Z</dc:date>
    </item>
  </channel>
</rss>

