Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in ProjMgr app?
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00094508
Message ID:
00094537
Views:
21
>I was just playing with the ProjMgr application and I noticed a problem with the Projects page. If you click on the Projects button, then click on the Contacts tab. Then click on Add, and create a new entry. Click on OK to go back to the contacts list. Now click on the new entry so it's highlighted, then on "Edit". When the new entry comes up, click on Cancel. The new entry disappears from the contacts list. What's happening? It does seem to work if you click on one of the other tabs before trying to edit the new entry.
>
> The only reason I bring this up is I'm wondering if this bug is just in the sample app, or if I might see the same behavior in my apps based on the same forms.

This is because the records in the Contacts list are table buffered. The second time you enter the Contacts Information form, then press Cancel, it cancels the changes since the last Save()...which in a table-buffered world removes the record itself.

If you save the table-buffered records by pressing OK or by clicking on Page 1 and replying "Yes" to the question "Save Changes?" THEN go back to the page and edit the record you will see that it has indeed been saved.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform