Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh button causing error..
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00129772
Message ID:
00130367
Views:
29
BOb,

>When I look in the database it seems that cfinduniqueid is an empty character field. Is that property blanked out after the requery during the find?>

>If so, what should I use as view paramaters to just be able to refresh the form with the current info just being updated?>

Got it...you're absolutely right (of course, you already knew that, didn't you <bg>?). I have made the following changes to CBizObjForm to fix this problem, and you can do the same:

1. In CBizObjForm, create a new property called uFindIDOriginalVal. I have set the default to "(None)".

2. Add the following code to the top CBizObjForm.Init():
ThisForm.uFindIDOriginalVal = ThisForm.cFindUniqueID

3. In CBizObjForm.FindFormActivate() change the following:

Change...
ThisForm.cFindUniqueID = ''

To...
ThisForm.cFindUniqueID = ThisForm.uFindIDOriginalVal

4. In CBizObjForm.FindProcess() change the following

Change...
ThisForm.cFindUniqueID = ''

To...
ThisForm.cFindUniqueID = ThisForm.uFindIDOriginalVal

After making these changes, just make sure your form's cFindUniqueID value is set to 0. This should do the trick for you!

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
Next
Reply
Map
View

Click here to load this message in the networking platform