<?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: Problem with where clause in pulldata(&amp;quot;@layer&amp;quot;...) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664605#M64705</link>
    <description>&lt;P&gt;When you look at the service is query enabled?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1762784635175.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143507i88C6EAB9CFC2497A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neal_t_k_0-1762784635175.png" alt="Neal_t_k_0-1762784635175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 14:24:06 GMT</pubDate>
    <dc:creator>Neal_t_k</dc:creator>
    <dc:date>2025-11-10T14:24:06Z</dc:date>
    <item>
      <title>Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664275#M64694</link>
      <description>&lt;P&gt;Having trouble with the where clause in a pulldata("@layer"...) calculation. I have two surveys: one where a user is given a user name (field name user_name) for logging in and enters their information such as name, address, etc. Records in the first form will be unique users.&lt;/P&gt;&lt;P&gt;The second form is where the user logs in with the same user name (field name user_login) and enters resources they have. There can be multiple records per user in this form.&lt;/P&gt;&lt;P&gt;I want to pull a separate field from the first form (organization_name) where the username from the second form matches the username from the first form. (This is basically creating related tables/joins, but the Web Designer doesn't support them, afaik.) In other words, return fom1.organization_name where form1.user_name = form2.user_login.&lt;/P&gt;&lt;P&gt;My calculation is&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;pulldata("@layer", "getValue", "attributes.name", "https://services.../FeatureServer/0", "user_name=user_login")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But whenever I run this, I get an error that there is no survey element named ${user_name}. I've tried using the ${} format on one field, both, the other, switching the order of the fields, etc. Is there a way to do this? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 18:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664275#M64694</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2025-11-07T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664322#M64696</link>
      <description>&lt;P&gt;try putting the where clause in a helper field&amp;nbsp;&lt;/P&gt;&lt;P&gt;whcl = concat ("&lt;SPAN&gt;user_login = '",${user_name},"'")&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;pulldata("@layer", "getValue", "attributes.name", "https://services.../FeatureServer/0", ${whcl})&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;user_login = the field in the feature layer you are querying&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;user_name =&amp;nbsp; the name of the question in the form you are using to match.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 19:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664322#M64696</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-11-07T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664597#M64702</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;. I'm not getting an error anymore, but it's not returning anything either. The where clause -&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;type    name    label           calculation
hidden	whcl	Where clause   	concat ("user_name = '",${user_login},"'")&lt;/LI-CODE&gt;&lt;P&gt;returns: user_name = 'ZenMasterZeke', which seems correct. The pulldata field is&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;type  name  label  calculation
text  org   org    pulldata("@layer", "getValue", "attributes.name", "https://services8.arcgis.com/IGysY44dU9lNnAZQ...FeatureServer",  ${whcl})&lt;/LI-CODE&gt;&lt;P&gt;but nothing is returned. I've verified that name is the correct attribute,&amp;nbsp; the feature service id is correct, and user_name in the&amp;nbsp;@layer feature layer = user_login in the querying layer. The full section of the xlsform is&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;type            name            label          calculation
username	user_login	Login name																		hidden	        whcl	        Where clause   concat("user_name = '",${user_login},"'")
text	        org	        Org	       pulldata("@layer", "getValue", "attributes.name", "https://services8.arcgis.com/IGysY44dU9lNnAZQ.../FeatureServer",  ${whcl})	
note		               ${whcl}									&lt;/LI-CODE&gt;&lt;P&gt;Can't figure out what's wrong &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664597#M64702</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2025-11-10T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664600#M64703</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/116479"&gt;@ZenMasterZeke&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;A href="https://services8.arcgis.com/IGysY44dU9lNnAZQ/arcgis/rest/services/service_007055ac6d3d440e8914455a76115e77/FeatureServer" target="_blank" rel="noopener"&gt;https://services8.arcgis.com/IGysY44dU9lNnAZQ/arcgis/rest/services/service_007055ac6d3d440e8914455a76115e77/FeatureServer&lt;/A&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;/0&lt;/FONT&gt;&lt;/STRONG&gt;"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you need the sub layer ID in there as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664600#M64703</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-11-10T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664602#M64704</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks, but that didn't work either&lt;/P&gt;&lt;P&gt;Edit -hmm, user (me) error. Survey is on one portal, I was using layer from a different one. Duh... Thanks though!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664602#M64704</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2025-11-10T14:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664605#M64705</link>
      <description>&lt;P&gt;When you look at the service is query enabled?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neal_t_k_0-1762784635175.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143507i88C6EAB9CFC2497A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neal_t_k_0-1762784635175.png" alt="Neal_t_k_0-1762784635175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664605#M64705</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-11-10T14:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with where clause in pulldata("@layer"...)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664606#M64706</link>
      <description>&lt;P&gt;I will check that as well.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 14:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/problem-with-where-clause-in-pulldata-quot-layer/m-p/1664606#M64706</guid>
      <dc:creator>ZenMasterZeke</dc:creator>
      <dc:date>2025-11-10T14:25:11Z</dc:date>
    </item>
  </channel>
</rss>

