Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Key differs between view & table
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00332312
Message ID:
00332875
Views:
19
>>>In the standard bizmaintenanceform when they hit the new button page 2 pops empty and they can add data. Page 3 holds the data from the other table. Tableupdate() at that time and I see that the view shows a value for custid, but the actual table as a different one.
>>
>> If you can find out what's really causing this, I'd love to hear it. This one was driving me buggy a few weeks ago. I ended up removing the auto-requery stuff between my bizobjs and manually handling it - that seemed to fix it. I wasn't able to pin down the exact cause. I made the mistake of changing a few things at once, then testing so I'm not exactly sure which change fixed the problem.
>
>I'm glad/sorry that I am not alone here. I too started to rip out the frameworks defaults in favor of hard coding it myself. I then went to a new form class to re-do it all over again with a new dataenvironment class. Same problem.
>
>Kevin, do you see the oak leaf beam shining in the night sky? < Batman reference not Austin Powers :) >
>
>__Stephen

When the save method is called or, if a new record is added to a view, the OnNew() method is called. This pre-fetches a new id for a view. In order to not call the newid function twice, the method fools the database into thinking the field has not been edited by setting the cursorsetprop value to a non-edited status. This may be part of the problem. Read the onnew() method in the kBizobj to understand how this method works. There are times when I have had to manually call this method to get things working correctly.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform