|
POST
|
platform: Experience Builder Dev v1.4, Javascript API 4.19 I would like to update the value of a field in the Editor Widget. I have attempted to update featureFormViewModel.feature.attributes but this does not show up in the EditorWidget. I have attempted to refresh the layer of the view model without luck: editorWidget.viewModel.featureFormViewModel.layer.refresh() I've not yet tried to use applyEdits on the feature layer. It seems I should be able to update the data before sending off with this function. Example: const editorWidget = new Editor({view: view, container: container})
editorWidget.watch('viewModel.featureFormViewModel.feature', (newValue) => {
newValue.attributes.site_city = "New City"
}
const attributes = editorWidget.viewModel.featureFormViewModel.getValues()
console.log(attributes) //Updated city name is not shown in the attributes
const attributes = editorWidget.viewModel.featureFormViewModel.feature.attributes
console.log(attributes) //Updated city name IS shown in the attributes
... View more
07-13-2021
10:35 AM
|
0
|
0
|
920
|
|
POST
|
Hello I don't recall what my initial issue was but was able to get it working. This is showing a POST to the Extract Changes endpoint: https://services1.arcgis.com/<yourOrgID>/ArcGIS/rest/services/Addresses/FeatureServer/extractChanges The response includes the statusUrl property with a job ID: https://services1.arcgis.com/<yourOrgID>/ArcGIS/rest/services/Addresses/FeatureServer/jobs/9edaa7a1-4fce-4b69-a521-3example9
... View more
07-12-2021
08:30 AM
|
0
|
15
|
4412
|
|
IDEA
|
When publishing with GeoAccessor's to_featurelayer function, the resulting service is given a unique name. Ideally a user could specify a name. To facilitate this, it would great if this function could overwrite an existing feature layer, as well. Example with psudocode: from arcgis.gis import GIS
from arcgis.features import FeatureLayer
from arcgis.features import GeoAccessor
gis = GIS(gis=<>, username=<>, password=<>)
serviceUrl = "https://services1.arcgis.com/<OrgID>/arcgis/rest/services/<name>/FeatureServer/0"
mylayer = FeatureLayer((serviceUrl))
df = GeoAccessor.from_layer(mylayer)
df.spatial.to_featurelayer(title='',tags='',folder='',name='YourNameHere',overwrite=True)
... View more
06-24-2021
11:26 AM
|
1
|
0
|
1194
|
|
POST
|
The Spatial DataFrame is unable to export to a Hosted Feature Layer at API version 1.8.5. It seems the to_featurelayer function should handle batching. The feature layer I am exporting from has 219k records. from arcgis.gis import GIS
import pandas as pd
gis = GIS(url, username, password)
premiseLayer = gis.content.get(fsItemId)
fLyr = premiseLayer.layers[0]
df = pd.DataFrame.spatial.from_layer(fLyr)
df[columnList].spatial.to_featurelayer('NewName',folder='folderName')
...
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_accessor.py, in to_featurelayer:
Line 2182: return content.import_data(self._data, folder=folder, title=title, tags=tags)
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py, in import_data:
Line 5361: res = self._portal.con.post(path, postdata)#, use_ordered_dict=True) - OrderedDict >36< PropertyMap
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in post:
Line 720: force_bytes=kwargs.pop('force_bytes', False))
File C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in _handle_response:
Line 502: raise Exception(data['error'])
Exception: {'code': 400, 'message': 'The maximum number of records allowed (1000) has been exceeded.', 'requestId': '', 'traceId': 'f7ed4d8d8f6b6647b195319ca2c420a8'}
... View more
06-16-2021
09:14 AM
|
0
|
4
|
1936
|
|
POST
|
When Overwriting a Feature Layer on ArcGIS Online via Pro the corresponding WebHooks become unusable. I published a hosted feature layer on AGOL using a fGDB as the source. Some WebHooks were created off the AGOL service. They functioned as expected. Later, I user ArcGIS Pro to Overwrite this service (Share Tab -> Web Layer -> Overwrite Web Layer). The Map I used held the same file geodatabase used to initially publish the service. The WebHook then stopped sending payloads. When I attempted to edit them, I received this error: 'Object reference not set to an instance of an object'. I am also unable to delete. Pro Version: 2.6.0 fGDB version: 10.0
... View more
05-21-2021
09:58 AM
|
0
|
5
|
1715
|
|
POST
|
You could use arcpy.describe and .exists to validate the connection file is valid.
... View more
05-11-2021
12:49 PM
|
0
|
0
|
2497
|
|
POST
|
The supportingWidgetDefaults property of the Editor Widget defines featureForm as an array of optional fieldConfig objects. However, the fieldConfig object of the FeatureForm widget is depreciated. (source) Shouldn't the supportingWidgetDefaults property be updated to support a featureForm with an array of FieldElement and/or GroupElement objects? Or, maybe a formTemplate object? Problem: I'm looking for a way to change the Editor's template based on workflow. If a user is updating, the fields should be configured differently than if a user is adding. It is a bit confusing if this should be managed by supportingWidgetDefaults as the documentation supports using a depreciated object model.
... View more
05-11-2021
11:03 AM
|
0
|
0
|
870
|
|
POST
|
Thanks for your help. Using the id generated from props was the key.
... View more
04-28-2021
04:32 PM
|
0
|
0
|
6082
|
|
POST
|
Thanks @DavidMartinez Will documentation for appActions and getAppStore be created on the Api Reference page? https://developers.arcgis.com/experience-builder/api-reference/ I'm trying to troubleshoot a scenario where the Editor widget will be populated with data, but not open. I'm using the code you posted here. const action = appActions.openWidget(this.state.editorWidget.id);
console.log(action)
//{type: "OPEN_WIDGET", widgetId: "17919c5e87a-widget-1"}
//type: "OPEN_WIDGET"
//widgetId: "17919c5e87a-widget-1"
//__proto__: Object
getAppStore().dispatch(action); It appears the widget is getting the message to enter an edit workflow because the fields are correctly populated. This image shows the widget after I open it via click. @RobertScheitlin__GISP Were you able to use appActions?
... View more
04-28-2021
11:53 AM
|
0
|
2
|
6090
|
|
POST
|
Bump. I've experienced this problem with Pro 2.7.1 and 2.7.3. EPS does not contain vectors.
... View more
04-27-2021
03:48 PM
|
0
|
0
|
2318
|
|
IDEA
|
Thanks for your comment @ShanonLoughton. Creating additional logic to support a what should be a 'Touch Free' system isn't appealing. We will continue to support legacy ETL until this feature can be brought up to a production-ready state.
... View more
04-19-2021
08:25 AM
|
0
|
0
|
3078
|
|
DOC
|
Hi @ChrisBuscaglia Thanks for your reply. Good to hear there is an intention to upgrade RCF past the 3.x API.
... View more
04-13-2021
11:25 AM
|
0
|
0
|
11331
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2022 02:52 PM | |
| 1 | 07-27-2023 10:51 AM | |
| 2 | 11-14-2023 08:48 AM | |
| 1 | 10-27-2021 11:50 AM | |
| 2 | 12-11-2023 04:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
04-29-2024
11:30 AM
|