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:
00617527
Views:
33
>>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,

OK, I understand that it is confusing... It is for me too <g>. I tested it out in the command window (thanks for the tip) and it DOESN'T happen!!! So, I added code to the postfindhook method to requery and refresh. That took care of the problem... I guess I'll keep that in the back of my mind for if this happens again and table this one until I have grown some more hair <g>.

Thanks for the help.
Rod Lewis
Previous
Reply
Map
View

Click here to load this message in the networking platform