<?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 Spatially Query a FeatureLayer and pass the outFields to a JS variable in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/spatially-query-a-featurelayer-and-pass-the/m-p/1023266#M36882</link>
    <description>&lt;P&gt;#firstPost&lt;/P&gt;&lt;P&gt;I'm trying to spatially query a featureLayer and pass the outFields to a JS variable for use in other HTML elements. I've explored "&lt;SPAN&gt;esri/tasks/support/Query&lt;/SPAN&gt;", "&lt;SPAN&gt;availableFields&lt;/SPAN&gt;" and tried extracting data from elements like the popupTemplate (as macgyver as that is). Im not sure if Arcade is involved and if so maybe throwing me off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this code defines the popupTemplate element and that it will display fields "B12001_calc_pctMarriedE" and "B12001_calc_numMarriedE" from all the fields `["*"]`. I'm looking to pass these variables to a JS variable. Im not sure where I should be scooping this information up. and how to go about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var popupTemplate = new PopupTemplate({
  // autocasts as new PopupTemplate()
  title: "{NAME} in {COUNTY}",
  outFields: ["*"],
  content: [{
    // It is also possible to set the fieldInfos outside of the content
    // directly in the popupTemplate. If no fieldInfos is specifically set
    // in the content, it defaults to whatever may be set within the popupTemplate.
    type: "fields",
    fieldInfos: [{
      fieldName: "B12001_calc_pctMarriedE",
      label: "Married %"
    },{
      fieldName: "B12001_calc_numMarriedE",
      label: "People Married",
      format: {
        digitSeparator: true,
        places: 0
      }
    }]
  }]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 02:18:09 GMT</pubDate>
    <dc:creator>Imagomundi</dc:creator>
    <dc:date>2021-02-04T02:18:09Z</dc:date>
    <item>
      <title>Spatially Query a FeatureLayer and pass the outFields to a JS variable</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/spatially-query-a-featurelayer-and-pass-the/m-p/1023266#M36882</link>
      <description>&lt;P&gt;#firstPost&lt;/P&gt;&lt;P&gt;I'm trying to spatially query a featureLayer and pass the outFields to a JS variable for use in other HTML elements. I've explored "&lt;SPAN&gt;esri/tasks/support/Query&lt;/SPAN&gt;", "&lt;SPAN&gt;availableFields&lt;/SPAN&gt;" and tried extracting data from elements like the popupTemplate (as macgyver as that is). Im not sure if Arcade is involved and if so maybe throwing me off.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, this code defines the popupTemplate element and that it will display fields "B12001_calc_pctMarriedE" and "B12001_calc_numMarriedE" from all the fields `["*"]`. I'm looking to pass these variables to a JS variable. Im not sure where I should be scooping this information up. and how to go about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var popupTemplate = new PopupTemplate({
  // autocasts as new PopupTemplate()
  title: "{NAME} in {COUNTY}",
  outFields: ["*"],
  content: [{
    // It is also possible to set the fieldInfos outside of the content
    // directly in the popupTemplate. If no fieldInfos is specifically set
    // in the content, it defaults to whatever may be set within the popupTemplate.
    type: "fields",
    fieldInfos: [{
      fieldName: "B12001_calc_pctMarriedE",
      label: "Married %"
    },{
      fieldName: "B12001_calc_numMarriedE",
      label: "People Married",
      format: {
        digitSeparator: true,
        places: 0
      }
    }]
  }]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 02:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/spatially-query-a-featurelayer-and-pass-the/m-p/1023266#M36882</guid>
      <dc:creator>Imagomundi</dc:creator>
      <dc:date>2021-02-04T02:18:09Z</dc:date>
    </item>
  </channel>
</rss>

