Smart Editor able to create features from GeoJSON or Shapefile

523
5
06-25-2020 05:29 PM
Status: Open
NikHenryOz
New Contributor III

Hi,

It would be great to have the ability to select features from data added using 'Add Data' widget with the File option.  I know it hasn't been designed that way....as stated here:

Problem: Unable to use shapefiles added from the Add Data widget in the Smart Editor widget 

But there seems to be many users requesting something like this already:

Select, Copy, and Paste feature in WebApp Builder 

https://community.esri.com/ideas/13937 

Smart Editor is already able to select features from 'Add Data' widget layers, but can't create features based on the selected features of an added (using Add Data widget via 'File') GeoJSON or Shapefile file.

The proposed steps needed with config:

1. Option to select features from added layers  via the 'Add Data' widget? 

2. Which fields to import attributes into? Or, can do only "If the schema's are identical"??

The proposed steps would be the same as currently expected, not change needed.

Cheers

5 Comments
AlixVezina

Hi Nik,

You should now be able to successfully copy features from a shapefile added through the Add Data widget using the Smart Editor widget.

Make sure to enable the option to Allow user to create new feature(s) from existing feature(s) from the General Settings tab in the widget configuration.

Check the option Copied features values override defaults to enable feature values to carry over to the new feature. Values from the copied features will override the default template values only for the matched fields.

NikHenryOz

Yep, that has been working now for a couple of months.

Cheers

Nik

BlytheSpendlove

I've enabled the option to allow users to create new feature(s) from existing feature(s) but I can't figure out how to actually copy a feature when I then go into the app and try to actually use/test that functionality.  Could someone provide a screen shot or give an explanation of what I should be doing to copy/paste a pre-existing feature? I only see the option to create new features in the layer, not copy existing features. 

As a note, I am using Web App Builder for Developers version 2.18

Thanks,

Blythe Spendlove

@AlixVezina  @NikHenryOz 

AlixVezina

Hi @BlytheSpendlove ,
This topic is covered in more details in this video: https://youtu.be/CfkJYvItYEQ

 

BlytheSpendlove

Thank you @AlixVezina