Web Editing UN Data

738
6
08-12-2020 07:38 PM
VishApte
Esri Contributor

I am wondering if and when ArcGIS Collector, ArcGIS Web Application Builder and ArcGIS Experience Builder will support editing UN data. As far as I know, only client that can edit UN data currently is ArcGIS Pro. 

I have few scenarios that require simple data edits in Web Mapping and Field applications e.g. Open or Close a Valve. Or make a device "Inoperable". I am aware that REST end-points are available. But it is fair bit of work to develop Javascript code. It is not simply one "applyEdits" call. There will be whole workflow such as, create a version, start editing in a version (default is a protected version), apply edits, validate subnetwork, possibly update subnetwork, save edits etc. 

Developing a GP service to wrap all above is one option but not elegant.

Are there any plans to support a streamlined web editing of UN data?

On a side note, currently there doesn't seem to any way to publish a feature service with UN layers that connect to a non-default branch version. Is it by design?

Thanks,

Vish 

0 Kudos
6 Replies
MikeMillerGIS
Esri Regular Contributor

ArcGIS Collector can modify data in the utility network.  As of 10.8.1, you can also take branch versioned data offline and edit in a child version.

Work with offline maps and branch versioned data—ArcGIS Server | Documentation for ArcGIS Enterprise 

What ArcGIS Collector does not support are the utility network capabilities, such as validate, trace, and manage associations.

MikeMillerGIS
Esri Regular Contributor

Q: On a side note, currently there doesn't seem to any way to publish a feature service with UN layers that connect to a non-default branch version. Is it by design?

A:  Yes, branch versions are managed by the VMS on the service.  The clients need to request a child version when making calls to the service.

Some good info here - Branch Versioning: Setting the Stage 

0 Kudos
VishApte
Esri Contributor

Thanks Michael Miller 

Just wanted to find a best way to allow simple UN data edits to web and field users without users requiring to create a version. If publishing a feature service with datasets in a branch version is limited to Default version only, what are the alternatives to perform web edits in a non-default version? Last thing we want is allow web/field users edit directly in a default version.

I tried to create a map in Pro, added a layer from feature service that has only WaterDevice layer, changed the version of the source to non-Default version and then shared Pro map to Portal. But Portal reverts to Default version of WaterDevice layers . Any edits in Web go directly to Default version. Looks like "share map" in Pro didn't persist that layer is using non-default version (kinda expected). 

Re. "ArcGIS Collector can modify data in the utility network": which version this edit will apply to for online collector editors? Will Collector create a user branch version behind the scenes if default is protected version? The workflow of "create a version for each downloaded map" may only work for Offline Collector or Runtime developed apps.

Cheers,

Vish

0 Kudos
PrevinWong1
Esri Contributor

Vish, if you build a JS api application, you can switch the feature layer version by calling "setGDBVersion" on the feature layer.  Then build up your own simple web editor.

If you want to try out a branch version management widget for Web AppBuilder Developer edition, you can try this repo
GitHub - Esri/solutions-widget-utility-network-trace at develop    (UNVersionViewer)

This widget is not supported by Esri Support, and is merely a proof of concept.

MikeMillerGIS
Esri Regular Contributor

You can override the url in the webmap to hard code it at a version.  You would need to add an url Parameter to each feature service url.  This does work in some of the webapps, but runtime apps, such as collector fail to load this map.

Example

LindseyStone
Occasional Contributor III

Mike,

You say ArcGIS collector can modify data in the utility network.  Does the named user utilizing collector have to have an Utility network extension assigned to them?

0 Kudos