I have a GeodatabaseFeatureServiceTable with a Feature Layer for online editing in qml, and I want to change the url of the GeodatabaseFeatureServiceTable at runtime to edit another feature service. But somehow it doesn't work when I change the URL. Could someone help me on this issue?
For example, I want to change the url in the following code:
theFeatureServiceTable.url="http:\\gis......\FeatureServer\0";
when I use console.log(theFeatureServiceTable.url) now, the theFeatureServiceTable.url value is not changed at all.
Many thanks!
Wei
You will not be able to simply change the URL of the feature service - you will need to include two GeodatabaseFeatureServiceTable objects in your project - each pointing to a different feature service.
This is the same case for the TiledMapServiceLayer, if you wanted to switch basemaps, you can't just swap out the URL of the basemap service - you will need to include two TiledMapServiceLayer objects in your project.
Not very helpful - but I can confirm that what you are seeing is correct and that switching out the URL will NOT work.
- Hannah