As an example I am attempting to create an application where the user can edit features without a popup of any sort appearing. I understand that there is a code sample that does exactly that and i have linked it below. But I am using agol and do not host anything on my own servers, so i need this functionality in the form of a widget.
Solved! Go to Solution.
Thank you very much, I will download and compare the code with my own code and see where I made my mistakes. I assume using my own layer (which is hosted on arcgis online) will not be too difficult.
I just realized that the widget will only populate the layers that you add to it in the .js file. I thought that if this.map is called it retrieves all the information on the map including the layers.
I think I see where my problem is, i defined my functions outside of the startup method whereas you placed everything inside of the startup method. But i tried defining the function as _initEditing and without the underscore (which i believe is what would make into a global function) and I still get the same error. Do you think it is not as simple as that?