Greetings,
I am creating an editing application which the end user will use to manage their geographic and tabular data. Each feature that the user creates can have zero to many associated activitities which are contained in a standalone table. The user is given the option to create or delete instances in the activity table that relates back to their edit feature.
So far the application works pretty well. I am able to edit features and attributes in the feature layer and add or delete records in the standalone table. However, it apears that each time I gather the activity records that are associated with each feature, none of the activity records that I have either added or deleted have been updated in the standalone table. It's really strange. It's clear that the records are being recorded in ArcCat. I can add a bunch of records using the interface that I created, but if I close and open the interface (thus pulling the related records from the Activities table once agein) none of the new records are displayed. It get's stranger though. If I close and open the application, all of the edits that I made in the last application session are available. I need to be able to have these edits update instantaniously.
The code that I am using to add new activities is:
activityTable.applyEdits([ activity ], null, null);
activityTable.refresh();
The code I use to remove records is:
var ary:Array = selectedRecord as Array;
incidentVoteTable.applyEdits(null, null, ary);
incidentVoteTable.refresh();
Are there any glaring errors in my approach?
Thanks, Tyler Waring