<?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: Web App Builder - How to limit fields in &amp;quot;export to CSV&amp;quot; option in query widget? in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23318#M599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the SingleQueryResult.js file find this line&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;featureSet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is where the fields that are exported are specified. You could modify the available field here before it is passed to the ExportToCSV.js&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 13:17:31 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-06-08T13:17:31Z</dc:date>
    <item>
      <title>Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23317#M598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to limit the fields exported in the "export to CSV" option for the query widget. I would like to just limit the field exported to the same fields that are within our popups for our parcels. &amp;nbsp;I know i might have to dive into the code in the CSV.Utils.js for the application. Any direction or help to lead me to a work around would be great. I am working with Web App Builder for Developers 2.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 16:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23317#M598</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2017-05-31T16:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23318#M599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the SingleQueryResult.js file find this line&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;featureSet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is where the fields that are exported are specified. You could modify the available field here before it is passed to the ExportToCSV.js&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 13:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23318#M599</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-08T13:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23319#M600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have been able to get result that i am looking for, however it is being applied to all the layers within my query widget. &amp;nbsp;I have both parcels and address points being used in my query widget&amp;nbsp; When i go to export out address points results as a CSV the results will only list the "PIN" field. Which in my address point data is not a valid field.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["PIN"]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet.fields = lang.clone(layer.fields);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that i can call the Layer's popup configuration from the web map as the fields that should be exported? &amp;nbsp;So instead of doing the above code, limit the featureSet.fields to the web map popup that is specified in the query configuration dialogue box?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23319#M600</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2021-12-10T20:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23320#M601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What you are asking for would be difficult. The easier way would be to check which layer id you are working with and apply the code change based on the proper layer or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 19:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23320#M601</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-08T19:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23321#M602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;This sounds like a better way of accomplishing what I would like to do. I have the if else statement created but I am having trouble getting the layerID from the layer variable. Should i create another var that gets the layer info from the query.resultLayer? It is probably really simply what i am tyring to do but i am somewhat new to custom coding.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp; var layer = this.currentAttrs.query.resultLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet = new FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layer.id===5){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["PIN"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (layer.id===1) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["ADDRESS"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23321#M602</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2021-12-10T20:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23322#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The layer.id will not be 5 it will be something like "graphicsLayer4". I would use the layer.name instead:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;===&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Owner Parcels _Query Result"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23322#M603</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-09T13:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23323#M604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly! Now just have to go in and add the fields i would like. &amp;nbsp;Thank you so much for sharing your wealth of knowledge.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;_getFeatureSet: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = this.currentAttrs.query.resultLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet = new FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layer.name==="Parcel _Query Result"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["PIN"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (layer.name==="Address _Query Result") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["ADDRESS"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23323#M604</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2021-12-10T20:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23324#M605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Great don't forget to mark this question as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 13:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23324#M605</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-09T13:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23325#M606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i wanted to accomplish the same task in your Enhanced Search widget, how would the layer.name string be formatted? It was easy to figure out how the layer.name was formatted in the Query widget but with your Enhanced Search widget i am having a little bit more difficulty.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23325#M606</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2017-06-12T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23326#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In the eSearch you would use "Search Results: Whatever the name of the layer is in the LayerList widget"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:55:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23326#M607</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23327#M608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;_getFeatureSet: function(){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layer = this.currentSearchLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet = new FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layer.name==="Search Results: Parcel"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["PIN];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (layer.name==="Address _Query Result") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.fields = ["ADDRESS"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So I have tried to make those adjustments in the Widget.js for the eSearch widget. Upon exporting the data as a CSV, it&amp;nbsp;seems to be&amp;nbsp;carrying over the result formatting that is specified in the app configuration. I am a little confused as to how the currentSearchLayer is create and or what exactly that returns. &amp;nbsp;Is there something else i should be specifiying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23327#M608</guid>
      <dc:creator>KyleSchwizer</dc:creator>
      <dc:date>2021-12-10T20:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23328#M609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kyle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The search results layer is a client side FeatureLayer from a FeatureCollection and thus the attributes will be formatted using the eSearch widget settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23328#M609</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-12T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23329#M610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I am also trying to limit the number of fields that can be viewed in the csv results from query widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present it shows everything. I want to limit this right down to 4 fields. How do I go about doing this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert you mentioned making changes to&amp;nbsp;this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"In the SingleQueryResult.js file find this line&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;featureSet&lt;SPAN style="color: #000000; "&gt;.&lt;/SPAN&gt;fields &lt;SPAN style="color: #000000; "&gt;=&lt;/SPAN&gt; lang&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;clone&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;layer&lt;SPAN style="color: #000000; "&gt;.&lt;/SPAN&gt;fields&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is where the fields that are exported are specified. You could modify the available field here before it is passed to the ExportToCSV.js"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not exactly sure how to proceed. in the brackets should I be replacing text layer.fields with the titles of the fields I want included?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 08:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23329#M610</guid>
      <dc:creator>KymMcDonagh</dc:creator>
      <dc:date>2019-09-24T08:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23330#M611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kym,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You would &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow noopener noreferrer" target="_blank"&gt;filter&lt;/A&gt; the fields array before you pass it to the lang.clone.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; myFlds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"x"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"y"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"z"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; fFlds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;filter&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;hitch&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fldInfo&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;  myFlds&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;indexOf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fldInfo&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
featureSet&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lang&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;clone&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fFlds&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23330#M611</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23331#M612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Robert. I will try this out.&amp;nbsp; Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2019 15:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23331#M612</guid>
      <dc:creator>KymMcDonagh</dc:creator>
      <dc:date>2019-09-24T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23332#M613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question that seems very related to these questions, but concerns getting data from related records.&amp;nbsp; I would like to print my related table with information in it on the parent featureclass. Is there a way to alter this line:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;layer.fields = ["PIN"];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To something like ["relatedTbl.PIN"] to get related table information?&amp;nbsp; I have guys in the field collecting with Collector (where I can't customize the data that goes into the fields).&amp;nbsp; I can't find a way to relate the data when I export into csv once the guys get back to their desks.&amp;nbsp; Just printing the csv table of the inspection doesn't indicate what it was an inspection for.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 05:11:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/23332#M613</guid>
      <dc:creator>LisaT</dc:creator>
      <dc:date>2020-03-03T05:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder - How to limit fields in "export to CSV" option in query widget?</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/1236429#M22665</link>
      <description>&lt;P&gt;If we set custom result, it will not support. get original feature class name by "this.currentAttrs.query.resultLayer.infoTemplate.info['title']"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 16:58:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-app-builder-how-to-limit-fields-in-quot-export/m-p/1236429#M22665</guid>
      <dc:creator>RamakrishnaDesetti</dc:creator>
      <dc:date>2022-11-30T16:58:23Z</dc:date>
    </item>
  </channel>
</rss>

