POST
|
We do support add relationship to existing feature service in online using feature service addToDefinition API. Ex: https://url/ArcGIS/rest/admin/services/<serviceName>/FeatureServer/0/addToDefinition The origin layer and its related layer (table) has to exist. This API can only allow you to create a relationship between the two layers and be able to use queryRelated API on the layer. In the Example below, you will need to define the relationship for each layer which reference that other layer. Pl. note, the relationshipId for both layer is the same. FYI we also support creating a view that joins both layers. Pl. let us know if you your workflow needs a view that has one layer that join both origin and destination layer. Hope that helps. Khaled { "layers" : [ { "id" : 0, "relationships" : [ { "id" : 1, "name" : "myRel", "relatedTableId" : 1, "cardinality" : "esriRelCardinalityOneToMany", "role" : "esriRelRoleOrigin", "keyField" : "<PrimaryKey>", "composite" : <true | false> } ] }, { "id" : 1, "relationships" : [ { "id" : 1, "name" : "myRel", "relatedTableId" : 0, "cardinality" : "esriRelCardinalityOneToMany", "role" : "esriRelRoleDestination", "keyField" : "<ForignKey>", "composite" : <true | false> } ] } ] }
... View more
01-08-2019
01:46 PM
|
4
|
3
|
31682
|
POST
|
Not currently supported in the server side. This would need to be done on the client side. However, you can create a view of the feature service / layer with restrictive access like viewing attachments only through feature service capabilities. You can allow editing of the attachments only in the source feature service.
... View more
01-08-2019
07:45 AM
|
1
|
0
|
465
|
POST
|
Do you know if you have any definitionExpression on the layer that reference the "Type" field? deleting a field that is referenced by the definition expression would cause issue like what you are seeing. Also do you know if updating a feature works? I have just tried deleting a field and I have no issue adding features. So it might be either related to the definitionExpression or server cache issue. Updating anything in the layer would clear the cache if it is cache issue. Also would be good to know how you deleted the field? did you use the UX or from the REST admin API? You can always delete a field using the layer admin API: rest/admin/services/<myService>/FeatureServer/<layerId>/deleteFromDefinition { "fields" : [ { "name" : "<fieldName" } ] } Thanks Khaled Hassen Online Feature Service Dev Lead
... View more
01-08-2019
07:39 AM
|
0
|
0
|
1529
|
POST
|
FYI: Currently you can change the followings field properties after it is published: - Domain - Alias - Visibility The way to change this properties through layer update definition API. /rest/admin/.../FeatureServer/<layerId>/updateDefinition { "fields" : [ { "name" : "myField", "alias" : <myalias>, "domain" : "...", "visible" : <true/false> } ] } We are currently working on allowing updating other properties including nullable, editable in the next release or so. Will be update you shortly if we can make it in March release of online. Until we support this. You can always create an empty service and add a new empty layer with the new definition you need. You can then use the layer Append API to append the existing data you have (you would need to export the existing data to a filegdb or any other other format). Khaled
... View more
01-02-2019
09:12 AM
|
2
|
0
|
640
|
DOC
|
FYI: feature service API supports Append API on the layer. This is supported in the online home APP UX as well. The API supports feature upsert where you can update existing features (using a unique field) and add new features if they do not exists. We do support most of ArcGIS data format including filegdb, shapefile, geojson, excel, csv, etc. Will be good to check it out. https://developers.arcgis.com/rest/services-reference/append-feature-service-.htm Thanks Khaled
... View more
12-31-2018
09:42 AM
|
0
|
0
|
6503
|
BLOG
|
Yes looks like a bug. Will check it out. Until this is fixed, Pl. do any data or metadata update and this should clear the cache. Fix will be in online shortly. Khaled
... View more
12-31-2018
08:16 AM
|
0
|
0
|
153
|
POST
|
FYI: the feature service layer Calculate API allows passing a where clause to filter which records will be affected by calculate. So without having a filter on the layer, you can pass a ad-hoc where clause to the calculate API. If you want to apply calculate to only null field, you can use something like myField IS NULL. Khaled
... View more
12-31-2018
08:05 AM
|
1
|
0
|
1600
|
POST
|
Great thanks. We will add the subtypes in future release of online as I described earlier. We will handle it when publishing new data, but we will offer you a way to edit existing service layer to add subtypes. I am assuming the APP continue to work without subtypes when migrating from enterprise to online. FYI: we do have many supports properties in the layer and service metadata to indicate what is supported or not (we do not really have on for subtypes - will add it). There will always be differences between feature services in general and will be good to check these supports properties.
... View more
12-07-2018
09:13 AM
|
0
|
6
|
676
|
POST
|
Pl. describe what is not working for you for the enterprise and we will be sure it will make it in the next release or so in online. We are am not really aware of functionality missing in the API regarding subtypes except supporting it outside the renderer (only Pro uses it). As far as the subtypes and how to scale it, it is also an issue with enterprise also since the subtypes are returned in the layer metadata which as you described might not scale if we have many subtypes. Supporting subtypes is work in progress currently in online and we will offer a salable solution shortly.
... View more
12-07-2018
08:22 AM
|
0
|
0
|
676
|
POST
|
>What I am saying that as someone who makes their livelihood using the APIs it is not unreasonable to expect that both >agol and the current ArcGIS Server would follow the same standard of service definition. Yes this is our goal and we are trying hard to make this happens. But as you might have seen, there are always new WebGIS development in online FS that is not yet in server/enterprise and vise versa. This is mainly related to the the different requirements we have for enterprise versus online and their release plan. As far as the sub types, we do support it online it as described and used. We are working on adding the support of adding subtypes during publishing and expose them even if they are no referenced by any renderer. This is the only missing spec in online FS but our understanding this functionality is used only by Pro. So this is why it was not a high priority in development for online FS. To get around this limitation you can use the feature service layer update admin API to update the layer types or templates. If this is not the issue, pl. let us know and we can help you providing a workaround for any missing specs if possible and add the missing functionality to online in future releases Thanks Khaled
... View more
12-07-2018
07:42 AM
|
0
|
1
|
1436
|
POST
|
Online feature service supports types/template from service definition file (SD). This when you configure renderer based on subtypes. We do not currently preserve subtype when publishing filegdb though (we have this as enhancment-Maybe UC2019). Pl. try to go to ArcMap or Pro and try to publish your data (from filegdb). You can use your filegdb as the source of the data. You would have to configure renderer based on subtypes in order to get them to online as types metadata. We do have a project to expose and preserve subtypes if you do not specify renderer based on subyptes. This is also an enhacment enterprise has and did not make it in online. This is also planned for UC2019. Thanks Khaled
... View more
12-06-2018
04:16 PM
|
0
|
3
|
1436
|
POST
|
Can you send me the error you have when updating the line geometry if you see any? You can also call update the feature using the REST API and let me know what you see. Will be good if you can share this layer and I can take a look. Khaled
... View more
11-16-2018
10:13 AM
|
1
|
1
|
1137
|
POST
|
Pl. note the only value we support for lastEditDate is null. So you will need to be sure to have something like (i.e. "lastEditDate" : null). Also you can specify "sourceSchemaChangesAllowed" : false/true only for views. If you are specifying "sourceSchemaChangesAllowed" : true for non view feature service, you will get an error.
... View more
10-24-2018
11:57 AM
|
1
|
1
|
1472
|
IDEA
|
In addition of changing the maxRecordCount on the feature service and layer using the admin API. feature service supports requesting more records without changing the maxRecordCount in the layer. You can request more record by specify an additional parameter called maxRecordCountFactor. For instance you can specify .../query...&maxRecordCountFactor=3.0 If the maxRecordCount for a layer = 1000, then the server would return 3 * 1000 = 3000 record. The maxRecordCount factor is a floating number so you can request 2.5, etc. You can also request smaller value than 1 like .5. Khaled
... View more
10-05-2018
04:33 PM
|
3
|
1
|
1748
|
POST
|
You can update the feature service xml layer metadata using the feature service API directly if needed. You can use: ..../FeatureServer/0/metadata/update url to update but you will need to be the owner. You will get a chance to directly pass the xml file as an uploadId or as an itemId. Pl. note using the API does not update the featureService Item xml metadata. It only update the layer xml metadata. You can do this for all the layers within your feature service. To view the xml metadata, you can use .../FeatureService/0/metadata resource.
... View more
10-04-2018
07:58 AM
|
1
|
1
|
2814
|
Title | Kudos | Posted |
---|---|---|
1 | 10-31-2023 07:04 AM | |
1 | 04-13-2023 08:40 AM | |
1 | 03-11-2019 03:05 PM | |
1 | 02-22-2019 09:06 AM | |
1 | 10-04-2018 07:58 AM |
Online Status |
Offline
|
Date Last Visited |
04-17-2024
12:27 AM
|