Hi,
I'm having a really crazy problem here when trying to add new records through a cBizObjMaintenanceForm.
I added some code in the form's preSaveHook method to replace some fields that the form doesn't handle (i.e. today's date).
Everything works fine when I edit an existing record. When I ADD a new record, I get the following error message (I think it's from the framework):
"Another user has changed or deleted the data. Cannot save your changes. Do you want to update your data with the original values? (All your changes will be lost.)"
And I can choose yes or no.
Just in case, I tried placing the "replace" statement in the CListOneToManyBizObj.presavehook and it made no difference.
A record is indeed added to the right table, but none of the fields I update via "replace" in the presavehook are there.
Anyone has any idea of what I'm not seeing this time?
Thanks!
Alex
PS: If it's true that we learn from our mistakes, I must be a genius by now... ;-)
Low-carb diet not working? Try the Low-food diet instead!