Update multiple features attributes

255
4
02-24-2020 03:29 AM
Vakhtang_Zubiashvili
Occasional Contributor

Hi all,

I have created feature table using pure java script CRUD, using hitTest i get my features attributes in table when i click on features on map.

Also i did it using fetch, so if have any idea to use fetch URL will be useful.

Now i want to update selected features attributes at the same time, like we can on desktop version select column, enter value hit enter or click and update selected features values. 

I know, i have to use Apply Edits,  but how to update multiple features attributes  at the same time.

Any help appreciated.

Thank you

0 Kudos
4 Replies
KenBuja
MVP Honored Contributor

Remember that the updateFeatures parameter of applyEdits takes a collection of features. You can pass in your selection of features to be updated.

0 Kudos
Vakhtang_Zubiashvili
Occasional Contributor

Hi Ken,

Can you show me a little snipet of code how to start?

0 Kudos
KenBuja
MVP Honored Contributor

Take a look at these discussions for ways to use the parameters (updateFeatures and deleteFeatures)

Modifying a FeatureLayer then rendering results 

https://community.esri.com/message/869457-re-v49-feature-layer-applyedits-bug 

Vakhtang_Zubiashvili
Occasional Contributor

Hi Ken,

Sorry for late response.

You mean delete and add features with modified attributes?

0 Kudos