Select to view content in your preferred language

Getting attribute information for deletedFeature

41
0
5 hours ago
Aeseir
by
Occasional Contributor II

We have a feature layer that is created client side e.g.

const featureLayer = new FeatureLayer({
      title: "Test",
      geometryType: "polygon",
      objectIdField: "ObjectID",
      fields: [
        {
          name: "ObjectID",
          alias: "ObjectID",
          type: "oid"
        },
        {
          name: "id",
          alias: "id",
          type: "guid"
        },
        {
          name: "type",
          alias: "Type",
          type: "string"
        },
        {
          name: "identifiedMarkerID",
          alias: "identifiedMarkerID",
          type: "string"
        },
        {
          name: "recordedDate",
          alias: "recordedDate",
          type: "date"
        }
      ],
      source: [],
      spatialReference: view.spatialReference
    });

 

we then listen to the featurelayer event "edits" and key changes get pushed to server.

problem is that deletedFeatures doesn't show attributes of the said deleted feature, only objectId and globalId, there is no way to access attributes to get the identifiedMarkerID.

we need to be able to record that a feature with identifiedMarkerID that was deleted so if we get audited, we can see that feature was removed and when.

we use the editor widget to handle all the client side feature addition/modification/removal.

Any advice on how to do this.

0 Kudos
0 Replies