Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UniqueID ammended
Message
From
30/05/2001 17:02:55
 
 
To
30/05/2001 16:22:16
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00512833
Message ID:
00512905
Views:
11
>>I have a MMform that is not incrementing the ID correctly. The form is a cbizobjnolistmaintform that I subclassed to sbizobjnolistmaintform (with no modifications at all). I placed a cAddress object and a couple of Textbox objects on the first page. When I open the form, the ID increments one number as I suspect it should. I can add data to the form and then click on Save. The ID then increments two more numbers. Maybe this will help with my help. Thanks Bob A
>
>This happened to us awhile back... we couldn't figure out why. We even gave the "bug" a name while we hunted it... "double-dipping!" Then, we realized that it was the most basic of all issues. We had forgotten to make the primary field updatable in the view. You may want to check that. If it's not updatable, NewID() will fire twice... once on New() and once on Save() as the table is not receiving the value in the view.
>---Hope that helps...
> ---J

Double-dipping! I like it! Make sure you send this to Kevin so he can include it in his documentation! <g>
Previous
Reply
Map
View

Click here to load this message in the networking platform