I've got a simple webpage where you enter in street, city, and it hits a geocoding service. The service returns X,Y and I'm trying to write those values into a "dijit/form/TextBox". For testing I am able to set the street, city textboxes using registry.byId and pass the value to the service. The function that parses out the returned X,Y is not able to see the X,Y textboxes.
require([ 'esri/map',"dojo/on","dojo/parser","dijit/registry","dojo/ready","dojo/dom","dijit/form/Button","dijit/form/TextBox", 'esri/geometry/Point','esri/symbols/SimpleMarkerSymbol','esri/Color','esri/graphic',"esri/symbols/PictureMarkerSymbol",'dojo/_base/xhr', 'dojo/domReady!' ], function (Map, on, parser, registry, ready, dom, Point, SimpleMarkerSymbol, Color, Graphic, PictureMarkerSymbol, xhr) { var map = new Map("map", { center: [-56.049, 38.485], zoom: 3, basemap: "streets" });
parser.parse(); registry.byId("txtbx1").set("value", "800 n Pearl St");