<?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 Pulldata @layer slow load in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1428498#M56793</link>
    <description>&lt;P&gt;I'm using the pulldata(@layer) function to pull 45 pieces of data into a survey123 form based on a field entry in the form. This has slowed down the survey load time considerably and slowed down the drop down list load time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to stop calculations until a certain condition is met. Or is there a more efficient way to pull data points form the feature layer?&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 05:41:14 GMT</pubDate>
    <dc:creator>MattVizard</dc:creator>
    <dc:date>2024-05-10T05:41:14Z</dc:date>
    <item>
      <title>Pulldata @layer slow load</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1428498#M56793</link>
      <description>&lt;P&gt;I'm using the pulldata(@layer) function to pull 45 pieces of data into a survey123 form based on a field entry in the form. This has slowed down the survey load time considerably and slowed down the drop down list load time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to stop calculations until a certain condition is met. Or is there a more efficient way to pull data points form the feature layer?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 05:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1428498#M56793</guid>
      <dc:creator>MattVizard</dc:creator>
      <dc:date>2024-05-10T05:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer slow load</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1429848#M56794</link>
      <description>&lt;P&gt;make the question relevant so it only calculates when the condition is met.&lt;/P&gt;&lt;P&gt;Use the once() function so that it only calculates once.&lt;/P&gt;&lt;P&gt;Use calculationMode=whenEmpty so it calculates only if empty.&lt;/P&gt;&lt;P&gt;I'd also suggest reducing the 45 pieces. You could:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make one request, once, then parse the data in the form&lt;/LI&gt;&lt;LI&gt;Use other ways of interacting with the data - e.g.&lt;UL&gt;&lt;LI&gt;post - webhooks, python snippets&lt;/LI&gt;&lt;LI&gt;before - Inbox/edit workflows, custom URL schemes to pass data&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;User forms and arcade expressions within Field Maps&lt;/LI&gt;&lt;LI&gt;revisit the workflow method entirely&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 10 May 2024 09:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1429848#M56794</guid>
      <dc:creator>ChristopherCounsell</dc:creator>
      <dc:date>2024-05-10T09:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pulldata @layer slow load</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1431583#M56801</link>
      <description>&lt;P&gt;We use &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/412943"&gt;@ChristopherCounsell&lt;/a&gt; 's first suggestion. If we have a layer that we want to pull multiple attributes from (often it's pulling parcel ownership and site address), we use a single request and store the results as a hidden text field in the form.&lt;/P&gt;&lt;P&gt;For the individual questions, we use pulldata("@json", ${hidden_json_field}, ...) to access attributes.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 13:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-layer-slow-load/m-p/1431583#M56801</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-05-10T13:59:07Z</dc:date>
    </item>
  </channel>
</rss>

