AnsweredAssumed Answered

Settings Page Configuration Help

Question asked by Jacob.Nosal on Sep 20, 2016
Latest reply on Sep 21, 2016 by rscheitlin

Hello all,

I am working on creating a custom widget that allows a user to preview images of features on the web map. The webmap is hosted through Portal backed by ArcGIS for Server. The problem that I'm currently working through has to do with the configurability of the map and designating layers by url (because I can't assume they will be in any specific order). I am trying to save the urls to the config.json file in my widget, but am having trouble with the dojo.request.xhr.() call as the config.json is not in the root directory. Is there a better way to approach this?

At a basic level, I'm asking for best practices concerning writing to config.json in settings.js in order to access config.json in widget.js.

Jacob Nosal