Hello,
I have a simple app that collects data with one of those being a signature captured as an image. I have an issue when I go to submit the data and create the record, the attachment code endless loops and keeps adding the attachment.
My pseudo code looks like this:
1. Add Features to Feature Table
2. On Features Added, apply edits.
3. OnApplyEditsStatusChanged
- Get the ObjectID of the newly created feature.
- Select the new feature
4. OnSelectFeaturesStatusChanged, Add the attachment
Once the attachment is added, the onApplyEditsStatusChanged triggers causing a new selection which then in turn adds the attachment again and enters an infinite loop.
How do I not trigger the ApplyEdits after an attachment is added? or is there an entirely different way of approaching this problem?