AnsweredAssumed Answered

registry is not defined

Question asked by lkoumis on Feb 29, 2016
Latest reply on Mar 1, 2016 by lkoumis

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.

 

require([ "dojo/ready", 
        "dojo/on",
        "dojo/_base/connect", 
        "dojo/dom",
        "dijit/registry",
        "dojo/dom-construct",
        "dojo/parser", 
        "esri/arcgis/utils",
        "esri/domUtils",      
  "esri/tasks/query", 'dijit/_WidgetsInTemplateMixin',
'dojox/xml/parser', 'dojox/data/XmlStore',
'esri/tasks/QueryTask',"dijit/Menu", 
    "dijit/MenuItem",'dijit/form/Select',
  "dojo/domReady!"], function(
  ready, 
        on, 
        connect,
        dom,
        registry,
        domConstruct,
        parser, 
        arcgisUtils,
        domUtils,
  Query, _WidgetsInTemplateMixin, parser, 
  xmlParser, XmlStore,
  QueryTask, Menu, MenuItem, Select
  ){


  parser.parse();
  fillcountyselect();
  });


  


   function fillcountyselect(){
   
    var select1 = registry.byId("countyfield");
  select1.addOption( {label:"Select County", value: 0});

Outcomes