<?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: How return all values/attributes of table using arcade? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1207106#M47609</link>
    <description>&lt;P&gt;I'm not quite sure what your question is. I'm assuming you want to limit the fields that get printed. You can do that like so:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fips = $feature["parent_id"]
var dd = FeatureSetByName($map, "Survey v2", ['age', 'gender', 'race'], false)
var fillterSur = "survey_id = @fips"
var cou = First(Filter(dd, fillterSur))

if(cou == null) { return "no survey found" }

var attributes = Dictionary(Text(cou))["attributes"]
var print_fields = ["age", "gender", "race"]  // define the fields you want to print in the popup
var popup_lines = []
for(var f in print_fields) {
    var a = print_fields[f]
    var line = `${a}: ${attributes[a]}`
    Push(popup_lines, line)
}
return Concatenate(popup_lines, TextFormatting.NewLine)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 29 Aug 2022 08:06:18 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-08-29T08:06:18Z</dc:date>
    <item>
      <title>How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205004#M47522</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have this code which return specific fields but right now I need to return all values. I can write all attribute in code but the table I refer has lots of fields. is it any way I can get all fields on table to use it in pop up in web map&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var fips = $feature["parent_id"]

var dd = FeatureSetByName($map,
"Survey v2", ['age','gender','race'],False)

var fillterSur = "survey_id = @fips"

var cou = First(Filter(dd, fillterSur))

var popupTEXT = "Age: "
+Text(cou,'#,###')
var popupTEXT = "gender: "
+Text(cou,'#,###')
var popupTEXT = "race: "
+Text(cou,'#,###')

return popupTEXT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205004#M47522</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-08-22T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205010#M47523</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var attributes = Dictionary(Text($feature))["attributes"]
var popup_lines = []
for(var a in attributes) {
    var line = `${a}: ${attributes[a]}`
    Push(popup_lines, line)
}
return Concatenate(popup_lines, TextFormatting.NewLine)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1661179635177.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49133i4594E6D08B4A7FFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1661179635177.png" alt="JohannesLindner_0-1661179635177.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205010#M47523</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-22T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205037#M47525</link>
      <description>&lt;P&gt;Thanks Sorry I am kinda new to this Arcade code&amp;nbsp;&lt;BR /&gt;How can I combine your code with mine.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205037#M47525</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-08-22T15:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205089#M47526</link>
      <description>&lt;LI-CODE lang="javascript"&gt;var fips = $feature["parent_id"]
var dd = FeatureSetByName($map, "Survey v2", ['age', 'gender', 'race'], false)
var fillterSur = "survey_id = @fips"
var cou = First(Filter(dd, fillterSur))

if(cou == null) { return "no survey found" }

var attributes = Dictionary(Text(cou))["attributes"]
var popup_lines = []
for(var a in attributes) {
    var line = `${a}: ${attributes[a]}`
    Push(popup_lines, line)
}
return Concatenate(popup_lines, TextFormatting.NewLine)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Aug 2022 17:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1205089#M47526</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-22T17:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1206720#M47589</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;This is working fine but if I don't want to list&amp;nbsp; attributes and bring everything without writing because table has lots of fields&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 13:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1206720#M47589</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-08-26T13:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How return all values/attributes of table using arcade?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1207106#M47609</link>
      <description>&lt;P&gt;I'm not quite sure what your question is. I'm assuming you want to limit the fields that get printed. You can do that like so:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fips = $feature["parent_id"]
var dd = FeatureSetByName($map, "Survey v2", ['age', 'gender', 'race'], false)
var fillterSur = "survey_id = @fips"
var cou = First(Filter(dd, fillterSur))

if(cou == null) { return "no survey found" }

var attributes = Dictionary(Text(cou))["attributes"]
var print_fields = ["age", "gender", "race"]  // define the fields you want to print in the popup
var popup_lines = []
for(var f in print_fields) {
    var a = print_fields[f]
    var line = `${a}: ${attributes[a]}`
    Push(popup_lines, line)
}
return Concatenate(popup_lines, TextFormatting.NewLine)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 08:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-return-all-values-attributes-of-table-using/m-p/1207106#M47609</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-08-29T08:06:18Z</dc:date>
    </item>
  </channel>
</rss>

