Hi Everyone,
For what we are trying to do the smart edit widget also does everything, except when we try to copy polyline features it will only allow us to create a multipart polyline. Is there a way to copy features that are not multipart? If we have 5 polylines we would like to copy and append all 5.
any help would be appreciated
thanks in advance
Solved! Go to Solution.
Hi @AaronNash__GISP ,
Usually the Smart Editor will only allow to create multi-part features when copying features if the target layer you are trying to copy these features into has any fields with only "unique" values allowed. Do any of your fields only allow for unique values (other than the system fields like GlobalID and ObjectID) in the target layer?
@AaronNash__GISP There may be one more hands-on workaround if you are willing to modify the code in the dev edition 2.23. The field tied to the unique index you have identified above would need to be skipped in the code. The change would need to be made in the Widget.js file in the section starting on line 8709, in the custom widget you will be importing to your Portal.
Hi @AaronNash__GISP ,
Usually the Smart Editor will only allow to create multi-part features when copying features if the target layer you are trying to copy these features into has any fields with only "unique" values allowed. Do any of your fields only allow for unique values (other than the system fields like GlobalID and ObjectID) in the target layer?
thanks for the response. It appeared to be an issue with the version we were using. I installed the WAB developer version in Enterprise 10.9.1 and the option was there.
Ah yes it is possible this was due to an issue we have fixed in December, which occurs sometimes with services published from ArcGIS Pro.
The Smart Editor Widget: A Few Years in Review - Esri Community
Hi, one last limitation we were wondering about. We were tested with unversioned data with the WAB builder Developer smart widget in ArcGIS Enterprise 10.9.1 and the create features button was there, we tried with a versioned feature service and the option disappeared. Is this correct that this option is unavailable with a versioned feature class?
thanks in advance
Please could you share some screenshots to illustrate what you observe and what you would expect to see?
Hi, so in the below image there are 2 unversioned feature classes
when you copy feature with the unversioned feature class you get below.
This feature class is versioned in the database and stored in SDE.
when trying to copy features to this feature class the below image shows the behavior
Thank you @AaronNash__GISP , detailed screenshots help! I need to review some of the logic and get back to you asap.
The logic varies based on your feature geometries and if there are unique value fields in your target layer (the layer you are copying the selected feature-s into).
If your target layer has a field that only allows for unique values, then you will only be able to create one feature at the time.
Here's an app with some example cases you can play around with: https://www.arcgis.com/apps/webappviewer/index.html?id=d719bd42e2864cb09d3e7add47e6bac2
Now, if there are no fields in your target layer that only allow for Unique values (excluding the system fields), then what you are seeing could be related to the issue I've mentioned in the comment above and then using the Smart Editor widget from the latest version of the Web AppBuilder Developer Edition 2.23 as a custom widget in your Portal would be a good workaround.
Hi, thank you for the detailed response. We are still unsure about the unique vs non-unique indexing and how it affects our workflow. We found that when you version a feature class it creates an additional unique spatial index. We deleted that spatial index in SQL and the create features button is available, we are unsure of the downstream issues this could create.