Select to view content in your preferred language

FeatureLayer.applyEdits not working sometimes...

2966
10
09-07-2016 09:32 PM
ShaikhRizuan
New Contributor III

Hi,

I am having an application developed in WAB, Where we have customized an identify widget to push the data to feature service after identifying the layer on map. There will be multiple users who will be updating the feature service.  I am using FeatureLayer.applyEdits() method to update/insert /delete the feature.

Sometimes we could able to update/insert /delete the features in features service from application and sometimes it shows processing image in application for long time and there is no error logged in console.

We are having data in SQL server DB and ArcGIS 10.3. The features classes in DB are not versioned.

Kindly help me to get this solution.

Thanks,

Shaikh Rizuan

0 Kudos
10 Replies
ShaikhRizuan
New Contributor III

Hi Thejus,

In WAB add the draw widget and replace those 3 files:

1) Widget.js

2) Widget.html

3) strings.js (in nls folder)

yes, here you might need to change the URL and attributes. On map load i am searching a feature and drawing that graphics on map and from draw widget, user will draw the polygon and update the feature geometry for the feature which has been show as graphics on map load.

0 Kudos