<?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 registry is not defined in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207655#M19318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a code too fill combo box values to a form but I encounter the error that the registry is not defined even though it has been defined on line 40... Suggestions? Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([ "dojo/ready", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/connect", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/registry",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom-construct",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/parser", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/arcgis/utils",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/domUtils",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; "esri/tasks/query", 'dijit/_WidgetsInTemplateMixin',
'dojox/xml/parser', 'dojox/data/XmlStore',
'esri/tasks/QueryTask',"dijit/Menu", 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/MenuItem",'dijit/form/Select',
&amp;nbsp; "dojo/domReady!"], function(
&amp;nbsp; ready, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dom,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registry,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domConstruct,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parser, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcgisUtils,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils,
&amp;nbsp; Query, _WidgetsInTemplateMixin, parser, 
&amp;nbsp; xmlParser, XmlStore,
&amp;nbsp; QueryTask, Menu, MenuItem, Select
&amp;nbsp; ){


&amp;nbsp; parser.parse();
&amp;nbsp; fillcountyselect();
&amp;nbsp; });


&amp;nbsp; 


&amp;nbsp;&amp;nbsp; function fillcountyselect(){
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var select1 = registry.byId("countyfield");
&amp;nbsp; select1.addOption( {label:"Select County", value: 0});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:15:59 GMT</pubDate>
    <dc:creator>LefterisKoumis</dc:creator>
    <dc:date>2021-12-11T10:15:59Z</dc:date>
    <item>
      <title>registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207655#M19318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a code too fill combo box values to a form but I encounter the error that the registry is not defined even though it has been defined on line 40... Suggestions? Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([ "dojo/ready", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/connect", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/registry",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom-construct",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/parser", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/arcgis/utils",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/domUtils",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; "esri/tasks/query", 'dijit/_WidgetsInTemplateMixin',
'dojox/xml/parser', 'dojox/data/XmlStore',
'esri/tasks/QueryTask',"dijit/Menu", 
&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/MenuItem",'dijit/form/Select',
&amp;nbsp; "dojo/domReady!"], function(
&amp;nbsp; ready, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dom,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registry,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domConstruct,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parser, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcgisUtils,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domUtils,
&amp;nbsp; Query, _WidgetsInTemplateMixin, parser, 
&amp;nbsp; xmlParser, XmlStore,
&amp;nbsp; QueryTask, Menu, MenuItem, Select
&amp;nbsp; ){


&amp;nbsp; parser.parse();
&amp;nbsp; fillcountyselect();
&amp;nbsp; });


&amp;nbsp; 


&amp;nbsp;&amp;nbsp; function fillcountyselect(){
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var select1 = registry.byId("countyfield");
&amp;nbsp; select1.addOption( {label:"Select County", value: 0});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207655#M19318</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-12-11T10:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207656#M19319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Lefteris,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; It looks like your combo fill function is outside your main function thus unreachable&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 00:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207656#M19319</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-01T00:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207657#M19320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert is right. Your function and the call for the registry.byId lies outside the above defined require.&lt;/P&gt;&lt;P&gt;If you set it up it like this :&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;function fillcountyselect(){&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; require(["dijit/registry"],function(registry){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="keyword"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var select1 = registry.byId(&lt;SPAN class="string"&gt;"countyfield"&lt;/SPAN&gt;);&amp;nbsp; &lt;/SPAN&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; select1.addOption( {label:&lt;SPAN class="string"&gt;"Select County", value: &lt;SPAN class="number"&gt;0&lt;/SPAN&gt;});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....u.s.o. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;you have access to "registry".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 10:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207657#M19320</guid>
      <dc:creator>MiriamBrockmann</dc:creator>
      <dc:date>2016-03-01T10:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207658#M19321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also have a problem with your require modules/function arguments agreement. You have an extra "parcer" here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14568526467079174" data-renderedposition="60_8_872_16" jivemacro_uid="_14568526467079174"&gt;&lt;P&gt;_WidgetsInTemplateMixin, parser,&amp;nbsp; xmlParser&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207658#M19321</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2016-03-01T17:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207659#M19322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of my select is populated by an xml file. So, using just&amp;nbsp; xmlparser will be sufficient for the whole form?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207659#M19322</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-03-01T17:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207660#M19323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Miriam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still get a message that the "Cannot read property 'addOption' of undefined". It seems that the registry is still not recognized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from the html. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;select style="margin-top:10px;margin-bottom:10px;" id="countyfield" data-dojo-attach-point="countyfield" data-dojo-type="dijit/form/Select" data-dojo-attach-event="onChange:_onCountyClick"&amp;gt;&amp;lt;/select&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207660#M19323</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-03-01T17:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207661#M19324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lefteris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No Ken is talking about the fact that you have "parser" listed twice and xmlParser once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on,connect,dom,registry,domConstruct,&lt;STRONG&gt;parser&lt;/STRONG&gt;,arcgisUtils,domUtils,Query, _WidgetsInTemplateMixin, &lt;STRONG&gt;parser&lt;/STRONG&gt;,xmlParser, XmlStore,QueryTask, Menu, MenuItem, Select&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 17:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207661#M19324</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-01T17:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207662#M19325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to have my eyes checked. How much time did I wasted for this! #$@$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 18:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/207662#M19325</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2016-03-01T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: registry is not defined</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/1006793#M70990</link>
      <description>&lt;P&gt;I ran across this post when I was also getting an undefined variable after using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var myVar =&amp;nbsp;registry.ById("myDIV);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My problem was that I hadn't used parse.parse() at the very top of the code in the main "function", like in &lt;A href="http://www.narutogis.com/apis/arcgisjs3.27sdk/jssamples/layers_raster.html" target="_self"&gt;this example.&lt;/A&gt;&amp;nbsp;Just thought I'd mention this in hope that it'll save someone some time!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Dec 2020 21:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/registry-is-not-defined/m-p/1006793#M70990</guid>
      <dc:creator>AZendel</dc:creator>
      <dc:date>2020-12-03T21:07:37Z</dc:date>
    </item>
  </channel>
</rss>

