Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switching Data Environments Dynamically
Message
From
13/08/2000 11:13:48
Arie Van Der Ent
Arie Van Der Ent V.O.F.
Warnsveld, Netherlands
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Switching Data Environments Dynamically
Miscellaneous
Thread ID:
00404384
Message ID:
00404384
Views:
53
Hi there,

I would like to to create a FindForm with switching Data Environments. So the user can use different filters to create lists with VIP's and so on.

I placed a cOptionGroupl on the FindForm and the following code as first in the clickmethod of the 'SearchButton':

DO CASE
CASE ThisForm.cOptionGroupl.OptiongGroup.Value = 0
ThisForm.oBizObj.LoadDataEnvironment("myFindEnvironment_0")
CASE ThisForm.cOptionGroupl.OptiongGroup.Value = 1
ThisForm.oBizObj.LoadDataEnvironment("myFindEnvironment_1")
.....
ENDCASE

After searching the FindForm header indicates that the correct number of record are found but they are not shown in the grid. The SelectButton stays unabled and het CleanUpButton is not working.

Using 'ThisForm.Refresh()' at the end of the code also does't work. What's the solution?

Arie van der Ent
Next
Reply
Map
View

Click here to load this message in the networking platform