This is an app I created by modifying the Add & Delete features sample. The app does not contain any url for the MapServer. It only has the url for the FeatureServer.
Here is a snippet for the ServiceFeatureTable:
// declare as child of feature layer, as featureTable is the default property
ServiceFeatureTable {
id: featureTable
url: app.info.propertyValue("hydrantUrl", "") //This is the url to the featureserver
// make sure edits are successfully applied to the service
onApplyEditsStatusChanged: {
if (applyEditsStatus === Enums.TaskStatusCompleted) {
console.log("successfully added feature");
}
}
// signal handler for the asynchronous addFeature method
onAddFeatureStatusChanged: {
if (addFeatureStatus === Enums.TaskStatusCompleted) {
// apply the edits to the service
featureTable.applyEdits();
}
}
}
}
This is the error in the Server manager log before giving the user access to the MapServer.
At this time the user had access only to the FeatureServer.
WARNING | Apr 21, 2020, 12:13:19 PM | A request was made for service 'PropertyFacts/PropertyFactsHydrantsEdit.MapServer' but it did not have adequate credentials. | Admin |
This is the error in the Server Manager Log after giving the user access to the MapServer.
SEVERE | Apr 22, 2020, 11:55:12 AM | The requested capability is not supported. | PropertyFacts/PropertyFactsHydrantsEdit.MapServer | | 17127 | | applyEdits |