Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CBizObjMaintenanceFormNightMare adding new record
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
CBizObjMaintenanceFormNightMare adding new record
Miscellaneous
Thread ID:
00383025
Message ID:
00383025
Views:
46
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!
Next
Reply
Map
View

Click here to load this message in the networking platform