<?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: Need some help with pulldata javascript for a pole inspection survey in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076496#M35755</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/466779"&gt;@Nick_Apostolakis&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;What you are wanting is an attribute-based query.&amp;nbsp; This uses the same basic function as the 'Workign with a Feature Service' example in the 'JavaScript' Samples available in Survey123 Connect (the url_requests.js file, featureByLocation function), with the change of including a where variable that selects the pole based on poleid and removal of the geometry, geometryType, inSR and spatialRel variables.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 21:38:37 GMT</pubDate>
    <dc:creator>JamesTedrick</dc:creator>
    <dc:date>2021-07-07T21:38:37Z</dc:date>
    <item>
      <title>Need some help with pulldata javascript for a pole inspection survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076088#M35732</link>
      <description>&lt;P&gt;I have a pole inspection survey that originally collected info on the electrical pole and the customer connection on our pole, this was done but using a csv file.&amp;nbsp; After a few records were done I realized that the the pole info had its fields pre-populated from the CSV file, but the connections (which is a one to many of pole) were not listed so when they would record the info, this caused a problem of duplicating the records if some were already recorded. I then tried to pre-populate the connections same as the pole and found out that you could not pulldata for a one to many from a CSV file.&lt;/P&gt;&lt;P&gt;I was able to accomplish this with a survey from a feature service, but&amp;nbsp;the idea here is to create a feature service for recording the field inspections with their initial values populated from another feature service (which can be updated as poles are asbuilted without overwriting the field inspections),&amp;nbsp; After inspection values are collected they could then be mass pushed after verified in the office, we do not want the survey to change live data without being checked first.&lt;/P&gt;&lt;P&gt;I found out recently that there is the pulldata javascript functionality, but I have very little to no experience with javascript. what I want to do is ask the user for a geopoint (so we can keep track of poles inspected) then get them to enter the pole number which they would reference off the basemap, with this FacilityID number I would like to use the pulldata javascript functionality to just fill in the fields of the question from a different Feature Service, thus giving them the info for the pole and connections, with the ability to change the values if needed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen the example of getting a point from a polygon, but all I really want is to use the FacilityID they supply to pull the data.&lt;/P&gt;&lt;P&gt;We are using a Windows surface tablet so going to Field Maps is not an option and collector is being phased out in a few months.&lt;/P&gt;&lt;P&gt;any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 13:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076088#M35732</guid>
      <dc:creator>Nick_Apostolakis</dc:creator>
      <dc:date>2021-07-07T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with pulldata javascript for a pole inspection survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076496#M35755</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/466779"&gt;@Nick_Apostolakis&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;What you are wanting is an attribute-based query.&amp;nbsp; This uses the same basic function as the 'Workign with a Feature Service' example in the 'JavaScript' Samples available in Survey123 Connect (the url_requests.js file, featureByLocation function), with the change of including a where variable that selects the pole based on poleid and removal of the geometry, geometryType, inSR and spatialRel variables.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 21:38:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076496#M35755</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2021-07-07T21:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with pulldata javascript for a pole inspection survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076717#M35773</link>
      <description>&lt;P&gt;Thank you for replying, I was looking at that example, but my knowledge of javascript is not enough for me to make the changes, I will do some more research and find out how to make the changes. at least I know I am on the right track.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 13:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1076717#M35773</guid>
      <dc:creator>Nick_Apostolakis</dc:creator>
      <dc:date>2021-07-08T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with pulldata javascript for a pole inspection survey</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1114165#M38460</link>
      <description>&lt;P&gt;I am looking for the same thing. Adding to the Survey123 Sample to include an example of using pulldata from a csv to get multiple rows from the csv based on a previous question would be most helpful. We have a use case with bridge inspections were there's data in a csv file that is related by an identifier that is a 1:M relationship and we need to pull this data into the survey for field work. Please give us an example ESRI!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 17:10:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/need-some-help-with-pulldata-javascript-for-a-pole/m-p/1114165#M38460</guid>
      <dc:creator>ChristalHigdon_USFS</dc:creator>
      <dc:date>2021-11-04T17:10:22Z</dc:date>
    </item>
  </channel>
</rss>

