I'm new to ArcGIS web applications and server. I want to build webapplication for a webbrowser where users could add new features in my polyline feature layer. New added features should be saved in the layer and later I want to use the layer to make analysis with ArcGIS Desktop. I wonder where I need to store that feature layer to access it in my webapp? I analyzed some ArcGIS API for JavaScript samples and see there links to layers e.g. var rivers = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/1"
Can I store my feature layer in ArcGIS Online, get similar link and put it to my javascript? The main goal that features added by users would be saved in the layer. How can I achieve this?Thank you,Andrzej