canUseServiceGeodatabaseApplyEdits property

bool canUseServiceGeodatabaseApplyEdits

True if you can use ServiceGeodatabase.applyEditsAsync() to commit changes back to the service, false otherwise.

This value is true if the support for global IDs in all tables in the geodatabase is enabled, or support for global IDs in all tables in the geodatabase is disabled, false otherwise.

ServiceGeodatabase.applyEditsAsync() applies edits to all affected tables as a single transaction. This is the recommended approach for applying edits. However, if the service has been setup with mixed support for global IDs, then you must apply the edits individually to each affected table using ServiceFeatureTable.applyEdits

If ServiceGeodatabase.applyEditsAsync() is used when this property is set to false, it can fail with ArcGISExceptionType.geodatabaseGlobalIdSupportMismatch

Implementation

bool get canUseServiceGeodatabaseApplyEdits {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_ArcGISFeatureServiceInfo_getCanUseServiceGeodatabaseApplyEdits(
            _handle, errorHandler);
  });
}