Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Getting my "real" DataItem after saving manually
posted

Hello,

currently we are saving the appointment inside of our CustomAppointmentDialog.

ActivityOperationResult result = dlg.DataManager.EndEdit(dlg.Activity, true);

Appointment = result.Activity.DataItem as AppointmentInfo;

//DoStuffWithAppointment

dlg.UpdateDirtyStatus(false);

The problem is when I change something else, the dialog is dirty again and from my understanding the OnActivityChanging code will run again once we save in the dialog.

However, the DataItem from the ActivityChangingEventArgs for the "ActivityChanging" event does not have the values from the first time we saved and the DataItem is not known inside my main DataManager. Even when we changed it earlier with my method.

I hope you understand what I mean. It is kind of a complex program with database access, so it's not that easy to provide accessible code that you can run. However, if you can do live support, I'd be interested in that.

Best regards

Parents Reply Children
No Data