Hi Everyone
This should presumably be pretty simple.
I've made some changes to a model as part of producing a printed report. Those changes are purely cosmetic so I'd like to discard the changes at various stages of my script execution.
I've set
ArisData.Save(Constants.SAVE_ONDEMAND);
so that changes aren't automatically saved, but how do actually I tell the engine to discard them?
Thanks
Dan
Nikita Martyanov on
Hi Dan,
If you use SAVE_ONDEMAND mode, you won't get for example up-to-date model image or other information from database. All the changes you've done during report's working are in memory (in queue). So you have to save changes and then get up-to-date information from db.
I suppose there are two ways to change something, output it and discard changes:
1. Change something in db in normal save mode and do opposite operations to discard changes. Cons is that you will be saved as user who changed model.
2. Create temp model (copy of source) change it, output and delete. Cons is processor and memory load if your source data is big number of models.
BR, Nikita