<?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 do I use outFields with a custom geocoder? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813205#M6677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an example of how I would do this in the locator pop-up?&amp;nbsp; I'm new to all of this and I'm not sure how to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 17:44:41 GMT</pubDate>
    <dc:creator>BrandonKeinath1</dc:creator>
    <dc:date>2015-05-08T17:44:41Z</dc:date>
    <item>
      <title>How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813202#M6674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While reading through geocoder documentation I found reference to an outFields parameter.&amp;nbsp; Assuming I understand what this does I'd like to add the functionality into some custom geocoders I use in web app builder applications.&amp;nbsp; I tried adding it into my geocoding config_Geocoder.json file but nothing seems to happen.&amp;nbsp; The geocoder still functions properly but no additional fields are shown.&amp;nbsp; Can someone help me figure out what is wrong with the code?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{
&amp;nbsp; "geocoder": {
&amp;nbsp;&amp;nbsp;&amp;nbsp; "autoComplete": true,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "minCharacters": 3,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "arcgisGeocoder": false,
&amp;nbsp;&amp;nbsp;&amp;nbsp; "geocoders": [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;A href="https://recpgis01.mnpower.com/mpgis/rest/services/OnelineLocator/GeocodeServer" rel="nofollow noopener noreferrer" target="_blank"&gt;https://recpgis01.mnpower.com/mpgis/rest/services/OnelineLocator/GeocodeServer&lt;/A&gt;",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "One2line",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "singleLineFieldName": "SingleLine",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "placeholder": "",
&amp;nbsp; "outFields": "*"
&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>Sun, 12 Dec 2021 09:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813202#M6674</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2021-12-12T09:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813203#M6675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this thread can help: &lt;A href="https://community.esri.com/thread/150378"&gt;How can I access the "additional fields" in a locator?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813203#M6675</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-05-08T17:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813204#M6676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are doing it right. You should be able to get the fields using&lt;/P&gt;&lt;P&gt;geocoder.results[0].feature.attributes.NAMEOFATTRIBUTEYOUWANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results is an array so you can loop through it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813204#M6676</guid>
      <dc:creator>PaulCrickard</dc:creator>
      <dc:date>2015-05-08T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813205#M6677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an example of how I would do this in the locator pop-up?&amp;nbsp; I'm new to all of this and I'm not sure how to get started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813205#M6677</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-05-08T17:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813206#M6678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There does seem to be some good stuff there, but I'm not sure where to made the additional code changes necessary to see the additional fields.&amp;nbsp; Can you help me with that part since it sounds like I'm calling the outFields portion right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813206#M6678</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-05-08T17:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813207#M6679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe &lt;A href="https://community.esri.com/migrated-users/2525"&gt;Kelly Hutchins&lt;/A&gt;​ can point you in the right direction, since I am still learning the WebApp builder structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 17:55:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813207#M6679</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-05-08T17:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813208#M6680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In the ESRI example they use an infoWindow. You can just add it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geocoder.on("select", showLocation);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; function showLocation(evt) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var point = evt.result.feature.geometry;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new SimpleMarkerSymbol().setStyle(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SimpleMarkerSymbol.STYLE_SQUARE).setColor(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Color([255,0,0,0.5])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new Graphic(point, symbol);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setTitle("Search Result");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.setContent(geocoder.results[0].feature.attributes.score+",&amp;lt;br&amp;gt;&amp;lt;h3&amp;gt;Some other Fields&amp;lt;/h3&amp;gt;");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.infoWindow.show(evt.result.feature.geometry);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the full code of an exmaple modified from esri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 18:18:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813208#M6680</guid>
      <dc:creator>PaulCrickard</dc:creator>
      <dc:date>2015-05-08T18:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813209#M6681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The Geocoder widget in WAB does not use all the out fields specified in the geocode service.&amp;nbsp;&amp;nbsp; If you look in the Geocoder widgets widget.js and find the _processInfoWindowContent and the subsequent _generateInfoContent function you will see that the only attribute field it attempts to use is the Match_addr or StAddr. So you would have to modify the _generateInfoContent function to use more of your fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 19:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813209#M6681</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-05-08T19:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813210#M6682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did something like what you are asking and here is the help I got &lt;A href="https://community.esri.com/thread/121197"&gt;WAB Geocode Widget Composite Locator&lt;/A&gt;​. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813210#M6682</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-05-11T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use outFields with a custom geocoder?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813211#M6683</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;BR /&gt;Sorry for the delayed response.&amp;nbsp; I find the functions you mention and I was able to modify the code but I'm missing something.&amp;nbsp; My code changes only seem to affect the default World geocoder.&amp;nbsp; I only noticed it by accident when I forgot to switch to my custom geocoder.&amp;nbsp; Is there additional code I need to modify to have my custom geocoder use the _processInfoWindowContent and _generateInfoContent functions?&amp;nbsp; If I'm understanding the process the reason it is undefined is that the attribute "SearchField" doesn't exist in the default World geocoder.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="geocoder_popup_additionalfields_undefined.JPG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/101496_geocoder_popup_additionalfields_undefined.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14320500590645382" data-renderedposition="352_8_912_16" jivemacro_uid="_14320500590645382" modifiedtitle="true"&gt;&lt;P&gt;content += attr.SearchField + " HAHA";&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 15:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/how-do-i-use-outfields-with-a-custom-geocoder/m-p/813211#M6683</guid>
      <dc:creator>BrandonKeinath1</dc:creator>
      <dc:date>2015-05-19T15:42:37Z</dc:date>
    </item>
  </channel>
</rss>

