<?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 Include related records in Feature Report in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131737#M39615</link>
    <description>&lt;P&gt;I have a feature service with two related tables. I have surveys that reference all three elements separately (the parent feature service, the 1:1 table and the 1:M table). I would like to be able to run feature reports for one of the related tables, but also include attributes from the related parent record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be done directly in the syntax of the feature report template, or does this need to start from data design? In this case my parent feature layer includes jurisdictions and their basic information, and the 1:1 table is a status record. They are linked through globalID, and I didn't think to include some of the basic data already contained in the primary. Can I pull that data through the report template, or should I redesign the table to include it?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 21:44:58 GMT</pubDate>
    <dc:creator>SFM_TravisBott</dc:creator>
    <dc:date>2022-01-07T21:44:58Z</dc:date>
    <item>
      <title>Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131737#M39615</link>
      <description>&lt;P&gt;I have a feature service with two related tables. I have surveys that reference all three elements separately (the parent feature service, the 1:1 table and the 1:M table). I would like to be able to run feature reports for one of the related tables, but also include attributes from the related parent record.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be done directly in the syntax of the feature report template, or does this need to start from data design? In this case my parent feature layer includes jurisdictions and their basic information, and the 1:1 table is a status record. They are linked through globalID, and I didn't think to include some of the basic data already contained in the primary. Can I pull that data through the report template, or should I redesign the table to include it?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 21:44:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131737#M39615</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-01-07T21:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131977#M39628</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind sharing more examples or detailed designs of your layers/stables/surveys?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, you have 3 tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Layer A: parent layer, survey A&lt;/LI&gt;&lt;LI&gt;Layer B: child layer (A:B -&amp;gt; 1:1), survey B&lt;/LI&gt;&lt;LI&gt;Layer C: another child layer (A:C -&amp;gt; 1:M), survey C&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In a feature report for survey C, you want to reference the parent record in layer A when iterating records in layer C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the above example look like what you want?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 12:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131977#M39628</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2022-01-10T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132075#M39635</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109662"&gt;@ZhifangWang&lt;/a&gt;&amp;nbsp;You have it correct!&lt;/P&gt;&lt;P&gt;There are two iterations that I would like, in descending order of importance, as the second I can (sort of) already accomplish. Using your examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A feature report based on Survey B (1:1 child), that accesses attributes from the parent.&amp;nbsp;&lt;OL&gt;&lt;LI&gt;In my case, the parent is a jurisdiction, and the child record is a long status survey that gets updated bit by bit as they move through an inspection process. When the process is complete, I'd like to be able to produce a written report (done mostly from the child record), but also bring in attributes from the parent record, like jurisdiction name, county, personnel responsible, etc, which are all contained in the parent record. This obviously can be accomplished if I just include those attributes in the child table as well, but that seems redundant.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;A feature report that groups multiple records from Survey C (1:M child), while accessing information from Survey A (parent)&lt;OL&gt;&lt;LI&gt;Survey C represents inspection records, and the goal here is to produce reports based on the parent (jurisdiction) that summarize the whole inspection history. In my case this is the easiest to do, as I did&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; use a GUID to link the records, rather just the name of the jurisdiction, in order to avoid a URL parameter in the mobile app. So I believe I could filter by jurisdiction in the report view on Survey123 and run the report. However, it would be great to be able to work this&amp;nbsp;&lt;EM&gt;also&lt;/EM&gt; as a URL parameter, so field staff could click on their jurisdiction in a map (i.e., the parent record), and produce a report for the whole jurisdiction that accesses both the parent and the collection of child records.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Can we do it? Do we have the technology?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132075#M39635</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-01-10T16:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132821#M39697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If I understand correctly, this should be available in the feature report, as long as all layers are in the same service. Using &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1131977/highlight/true#M39628" target="_self"&gt;the above example&lt;/A&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When you iterating records in a child layer (the current data context is a feature in the child layer), you can reference any attribute/geometry of its parent feature by specifying the parent layer name. For example,&amp;nbsp;&lt;UL&gt;&lt;LI&gt;${#layerB}&lt;BR /&gt;This is an attribute of layerB ${field1inLayerB}&lt;BR /&gt;This is an attribute of its parent feature in layerA ${layerA.field1inLayerA}&lt;BR /&gt;${/}&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;When you iterating records in the parent layer (the current data context is a feature in the parent layer), you can also access all child features by opening an inner iterations. For example:&lt;UL&gt;&lt;LI&gt;${#layerA}&lt;BR /&gt;This is the feature which object ID=${objectid}&lt;BR /&gt;Below are child features in layerC:&lt;BR /&gt;${#layerC} (this iteration is under the context of the current parent feature)&lt;BR /&gt;child feature, objectid=${oidFieldInLayerC}&lt;BR /&gt;${/}&lt;BR /&gt;${/}&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the Repeats section in&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 12:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132821#M39697</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2022-01-12T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132887#M39706</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109662"&gt;@ZhifangWang&lt;/a&gt;&amp;nbsp;Thank you!&lt;/P&gt;&lt;P&gt;This works perfectly, and I was quickly able to reference those parent records in a feature report. Seems very simple and makes plenty of sense now that I see it, so thank you for getting me there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 15:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1132887#M39706</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-01-12T15:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1165709#M42198</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/109662"&gt;@ZhifangWang&lt;/a&gt;&amp;nbsp;- Returning to this after a little bit: Is this workflow still valid?&lt;/P&gt;&lt;P&gt;The documentation hasn't changed, but I've gone to implement this precisely as I had it before but to no avail.&amp;nbsp;I am working with the first example... I am running a report from a 1:1 child record, and trying to reference an attribute in the parent. I cannot seem to access&amp;nbsp;&lt;EM&gt;any&lt;/EM&gt; record in the parent layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFM_TravisBott_0-1650381446938.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39325i92AFA6BA0A5932CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFM_TravisBott_0-1650381446938.png" alt="SFM_TravisBott_0-1650381446938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;${City} is definitely a valid field in the parent layer....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFM_TravisBott_0-1650383606400.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39331i850B38F2B52B921C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFM_TravisBott_0-1650383606400.png" alt="SFM_TravisBott_0-1650383606400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if anything has changed on Esri's end that would invalidate this workflow.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1165709#M42198</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-04-19T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1182168#M43212</link>
      <description>&lt;P&gt;I have had similar issues and posted a few times on here and there seems to be very little support or responses.&amp;nbsp; I have 3 posts that have been without a response for the past 2-3 weeks.&lt;BR /&gt;Will follow this and see which gets a response first.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 14:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1182168#M43212</guid>
      <dc:creator>survey123_solutions</dc:creator>
      <dc:date>2022-06-12T14:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1186853#M43461</link>
      <description>&lt;P&gt;Well I'll take heart that you're equally un-answered, but remain demoralized that I can't seem to get this figured out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if it's always been this way but most of the posts I've made over the last few months have gone almost completely unanswered. Between the inconsistent support here and Esri's failure to update or provide accurate documentation at the pace they make changes it's easy to get frustrated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 16:51:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1186853#M43461</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-06-27T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1247539#M46915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm sorry that this caused any confusion.&lt;/P&gt;&lt;P&gt;Could you please keep an eye for our next release and try it out then?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1247539#M46915</guid>
      <dc:creator>Alison_Gou_</dc:creator>
      <dc:date>2023-01-12T07:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1280407#M48732</link>
      <description>&lt;P&gt;Were you able to figure this out?&amp;nbsp; I'm running into this exact issue.&amp;nbsp; I've been able to find a partial workaround because I have the following scenario:&lt;/P&gt;&lt;P&gt;I created individual survey forms for each of my two tables &amp;amp; feature service in Survey123 Connect.&lt;/P&gt;&lt;P&gt;Agencies (parent)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Programs (child to Agencies, 1:M)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Services (child to Programs, 1:M) - this is the layer with location geometry, and the other two are tables&lt;/P&gt;&lt;P&gt;I cannot access the parent data using a feature report template run on the Services, it gives me the same error.&amp;nbsp; However, I was able to run a similar report on the Agencies, and access the programs and services.&amp;nbsp; It didn't work exactly, because I was unable to filter conditionally using any of the child features, only the parent.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 19:42:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1280407#M48732</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2023-04-19T19:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1280471#M48735</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/228958"&gt;@Kara_Shindle&lt;/a&gt;&amp;nbsp;I did get it figured out eventually. The response for this question is now deprecated, which I mentioned above (as an aside, Esri, you need to figure out how to get old answers off of here so people don't keep finding the wrong information over and over).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get help from Esri staff at one point - it's a sort of complicated process that involves smuggling in a new xml file to change the survey's definition in order to get it to accept calling to the related features. if you give me some time I can try to rustle up where I have it, or you can contact&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;who provided the script and guidance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 20:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1280471#M48735</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-04-19T20:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1281816#M48826</link>
      <description>&lt;P&gt;Yes please!&amp;nbsp; I'm looking for any help I can get.&amp;nbsp; Thank you for the rec, I will reach out to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;as well.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1281816#M48826</guid>
      <dc:creator>Kara_Shindle</dc:creator>
      <dc:date>2023-04-24T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1285004#M49017</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/228958"&gt;@Kara_Shindle&lt;/a&gt;&amp;nbsp;Hopefully this work. The README are the notes I took after I did this (quite a while ago) and I've converted their python notebook (that I had adjusted a little) to a pdf so hopefully you can follow along.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 22:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1285004#M49017</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2023-05-02T22:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Include related records in Feature Report</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1480403#M57150</link>
      <description>&lt;P&gt;Hi! Has this problem been addressed in a new release? I'm in a similar situation where I need to run a report on a related inspection table that references the site identification information in the parent table. I can't figure out the right syntax to get this to work for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 17:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/include-related-records-in-feature-report/m-p/1480403#M57150</guid>
      <dc:creator>michellekc</dc:creator>
      <dc:date>2024-05-29T17:25:38Z</dc:date>
    </item>
  </channel>
</rss>

