<?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: Arcade: pre-populate new row of related table in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22864#M137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For better explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have the Smart Editor widget configured on the Hosted Feature Service that has a single related table.&amp;nbsp; When accessing the widget and selecting a single polygon feature, it populates the widget and does not allow the feature attributes to be edited (that's what we want):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448121__SmartEdit1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now when adding a new record to the related table "StandAloneEditGUID - TxTable", we'd like to have the FuncionalLocation column pre-populated with the FUNC_LOC value of the selected feature (see above screen shot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448122__SmartEdit2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2019 20:39:44 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2019-05-21T20:39:44Z</dc:date>
    <item>
      <title>Arcade: pre-populate new row of related table</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22863#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for a solution to pre-populate a column when editing a related table.&amp;nbsp; We have polygon features with a related table (hosted feature service) and simply want a way to insert new rows into that related table, which we can use the Edit Widget or Smart Editor widget in a WAB app just fine!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we'd like to prepopulate a common attribute from the selected feature when creating a new related record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've exhausted attempts to configure the widgets to accomplish this and now looking to see if an arcade expression can solve this for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 19:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22863#M136</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-05-21T19:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: pre-populate new row of related table</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22864#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For better explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have the Smart Editor widget configured on the Hosted Feature Service that has a single related table.&amp;nbsp; When accessing the widget and selecting a single polygon feature, it populates the widget and does not allow the feature attributes to be edited (that's what we want):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448121__SmartEdit1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now when adding a new record to the related table "StandAloneEditGUID - TxTable", we'd like to have the FuncionalLocation column pre-populated with the FUNC_LOC value of the selected feature (see above screen shot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/448122__SmartEdit2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 20:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22864#M137</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-05-21T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade: pre-populate new row of related table</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22865#M138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: I can get both the Edit widget and Smart Editor widget to work as expected if the feature service was originally published with a relationship class that had a 1-M relate between the FUNC_LOC on the feature class and FunctionalLocation on the many table to auto-populate the FunctionalLocation value when creating a new record on the many table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this same feature service is the source to a Survey123, which requires that 1-M relate to be between&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; a GlobalID on the feature class and a GUID on the many table. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;I attempted to republish the feature service with two relationship classes with both 1-M relates specified above, but the Survey123 doesn't like that and will not publish.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 12:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-pre-populate-new-row-of-related-table/m-p/22865#M138</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2019-05-23T12:58:28Z</dc:date>
    </item>
  </channel>
</rss>

