Esri / solutions-components

A collection of UI components for constructing webapps.
Apache License 2.0
11 stars 5 forks source link

Add support for creating new records in the table #275

Open avezina opened 1 year ago

avezina commented 1 year ago

Request by Chris Delaney: Do you know if we have creating new records on the roadmap? In special event operations, a police/fire special event coordinator would really only need to use one app to both create and manage information about an event. Currently, we use Crowdsource Manager 3x and Survey123 for this and have an HTML button in the info panel that a user can use to trigger a new record via the S123 form, but it’s a little clunky and non-self-evident. Ideally, I'd like to ship only one app that does both - much easier to manage and better user experience.

Currently also supported in ExB, e.g. image

Adding support for creating new records within this app would help keep user workflows within one application.

Also maybe we could consider providing support for creating features when the map is in the layout.

avezina commented 1 year ago

@jmhauck Questions based on your draft below: image

Are we planning to support both add features and records? Would add features still be available if there are no maps in the layout?

chris-fox commented 10 months ago

With the latest Manager designs I was thinking this + Add button could be added to the toolbar above the table and it would display the edit widget in the information panel. I would expect this to work for layers or tables.

For layers I would expect you would need to select your feature template, draw the feature in the map, fill in the attributes and commit the edit. For tables I would just expect the form to display and you fill in the attributes and commit the edit.

To this point we really need to consider the implications of this with #273. If you hide the map there would be no way to create features.

I also wonder if adding records is a configurable option or if like delete it should be enabled if the service supports the Add editing capability.

avezina commented 10 months ago

this + Add button could be added to the toolbar above the table and it would display the edit widget in the information panel

Based on the conversation with JS and Map Viewer teams yesterday, sounds like they might do something similar on their end too. https://devtopia.esri.com/WebGIS/arcgis-webviewer-app/issues/1484

like delete it should be enabled if the service supports the Add editing capability

I would lean towards following service capabilities until we get customer requests for a configuration option

avezina commented 10 months ago

Looks like this is definitely in active design on MV team side. We could hold on our end and see what they do, and then follow a similar pattern in our app for consistency.

(image below from AGO Dev Status weekly meeting, presented by Paul Barker) image

cdelaney585 commented 3 months ago

@avezina @azizaparveen @chris-fox @jmhauck It looks like editing from a table has been implemented at the R2 Map viewer release- see video below- Definite implications for Manager app, as pencil icon at end of row now triggers FeatureForm widget, and a floating button in bottom-right corner triggers edit widget to create a new record:

https://github.com/Esri/solutions-components/assets/8235157/11769fd0-cc3a-4343-b78b-dd5749d66cac

azizaparveen commented 3 months ago

@cdelaney585 we discussed this with Chris and decided to look into it in R3, regarding creating new feature, Manager have small map, so we need to come up with a design that will work for Manager. For Edit button showing up for each row, we also need to think about it in R3, In Manager, first we select a feature, then click Edit then it brings up the form for editing, if we adapt this design, the current workflow is going to change.