Capture changes from "Edit via Spreadsheet"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a project where I want an attribute on an entity that needs to be unique across modelstates. I've noticed that attribute values are divorced from Modelstates, so I've implemented an attribute per modelstate. I want to be able to track when the user adds modelstates, but I have not come up with a solution for adding modelstates through the spreadsheet.
I've tried watching the "AppLaunchViaSpreadSheetCmd" controldefinition, but it gets terminated before the spreadsheet even loads. After making saving and closing the spreadsheet the document updates, but there is no separate undo item. I assume the "New Model State" transactions get merged with the "Edit via Spreadsheet" transaction, but they don't fire the ModelStateEvents.OnNewModelState Event.
Anyone have any ideas how to capture these changes from Spreadsheet edits?