<?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: About query widget - field data type in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314426#M8393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I do is to finish an app using AGO account (web version, not developer edition), then download the app and work on the source code. The reason is that the developer version is 4 weeks later than the web version, and we want the new effect, widgets, and themes now -- the Dev version does not provide those now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never know this: the query widget in web version is different from the query widget in developer version, right? If this is true, what is the difference between these two? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the latest developer version is coming out, I will definitely select the &lt;STRONG&gt;enhanced search widget instead of &lt;/STRONG&gt;query widget. The difference is so obvious. Currently, I just can not use that great widget in our web version; the Built-in Query widget is my only choice.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 14:08:31 GMT</pubDate>
    <dc:creator>LeiZhou1</dc:creator>
    <dc:date>2015-08-06T14:08:31Z</dc:date>
    <item>
      <title>About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314421#M8388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I set up a search layer in the WAB query widget. There is one field 'Zip code', which is a numerical value defined by map service. So it always displays as 33,098 instead of 33098. Is there any method that I can change its format in the query widget? I know the format can be adjusted in web map pop-up window, but inside a query widget, can it be changed? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 23:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314421#M8388</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2015-07-28T23:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314422#M8389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is no configuration in place for this. But you can easily add code to handle this. Open the Query Widget.js file and around line 1131 replace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&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; fieldValue = this._tryLocaleNumber(fieldValue);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&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; if(fieldAlias !== "Zip code"){
&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;&amp;nbsp; fieldValue = this._tryLocaleNumber(fieldValue);
&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;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314422#M8389</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314423#M8390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not find the cod&lt;SPAN style="color: #3d3d3d;"&gt;e &lt;SPAN style="font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;this._tryLocaleNumber(f))&lt;/SPAN&gt;&lt;/SPAN&gt; in line 1131, but I found one from line 1852, the original code is like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;f = this._tryLocaleNumber(f));&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed that to &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(c!== "Zip_Code") {f = this._tryLocaleNumber(f));}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run it, the query failed. I am not sure is the variable c represent a alias name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you saying the line 1125, &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; _tryLocaleNumber: function (a) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var b = s.localizeNumber(a);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (null === b || void 0 === b) b = a;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return b
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314423#M8390</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2021-12-11T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314424#M8391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It sounds like you are using a minified version of the widget and &lt;STRONG&gt;not&lt;/STRONG&gt; the source code that comes with Web AppBuilder Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2015 18:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314424#M8391</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-08-05T18:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314425#M8392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;I had the same problem with WAB query widget and here's ESRI's response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;This is a known bug &lt;/SPAN&gt;&lt;EM&gt;(#BUG-000086319 Numeric field types within the attribute table in the Web AppBuilder still show the thousand comma that were removed in the webmap in arcgis online&lt;/EM&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;) and is &lt;STRONG&gt;scheduled to be fixed as part of the next AGOL update&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Calibri','sans-serif';"&gt;The only workaround is to make the field type as string (text) instead of numeric (i.e. zipcodes) before bringing into ArcGIS Online. This way the webmap will not have a comma by default and it will come into the Web AppBuilder attribute table with no comma as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 14:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314425#M8392</guid>
      <dc:creator>LynneHamlin</dc:creator>
      <dc:date>2015-08-06T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314426#M8393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I do is to finish an app using AGO account (web version, not developer edition), then download the app and work on the source code. The reason is that the developer version is 4 weeks later than the web version, and we want the new effect, widgets, and themes now -- the Dev version does not provide those now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never know this: the query widget in web version is different from the query widget in developer version, right? If this is true, what is the difference between these two? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the latest developer version is coming out, I will definitely select the &lt;STRONG&gt;enhanced search widget instead of &lt;/STRONG&gt;query widget. The difference is so obvious. Currently, I just can not use that great widget in our web version; the Built-in Query widget is my only choice.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 14:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314426#M8393</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2015-08-06T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: About query widget - field data type</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314427#M8394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that information!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 14:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/about-query-widget-field-data-type/m-p/314427#M8394</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2015-08-06T14:24:06Z</dc:date>
    </item>
  </channel>
</rss>

