Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox that is tied to a child object
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00614825
Message ID:
00617121
Views:
24
>Here's another one that has been bothering me with this same ComboBox. It doesn't refresh with the value that is in it's control source, but only on the first find. If I manually REQUERY(), it then fills in. I have verified that the table does not hold the value the first time the view is queried for the find. This view is from 2 tables and this field comes from the second table. If I work with the view outside of the framework, it works properly. It works every time after the first find, but not on the first one....

Hmmm...I'm not sure why it would not return this field the first time, but would return it on subsequent requeries.

>I haven't been able to test the business objects since I upsized to SQL as I eliminated all of the local tables and views since they wouldn't be using them. Is there some setting that I can use to allow me to test business objects outside of the application when they are tied to a remote view?

There are a number of ways you can do it...one of the easiest is to instantiate your application object from the Command Window first and the business object will get the local/remote settings from goApp. For example:

DO SETX
goApp = CREATEOBJECT("MyApplicationClass")
x = CREATEOBJECT("MyBusinessOjbectClass")
x.Requery()

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