Select to view content in your preferred language

Saving to datasource

308
1
Jump to solution
11-08-2024 07:20 AM
diffmarc
Emerging Contributor

Hello,

 

I am trying to build a widget, to save multiple, comma-delimited values to a field. I am using the multiSelect component to select the values from a list.

Now my question is: I got the datasource and all, but how do I now actually save some value to a field when developping a custom widget for the experience builder?

 

Thanks in advance,

 

Marc

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Frequent Contributor

Assuming your datasource is a FeatureLayer, you should be able to use the applyEdits() method to save the changes.

https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/

GIS Developer
City of Arlington, Texas

View solution in original post

0 Kudos
1 Reply
JeffreyThompson2
MVP Frequent Contributor

Assuming your datasource is a FeatureLayer, you should be able to use the applyEdits() method to save the changes.

https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/

GIS Developer
City of Arlington, Texas
0 Kudos