Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populating a grid and a combo box with a foreign key
Message
De
30/05/2002 11:41:11
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
 
À
30/05/2002 08:30:04
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00659857
Message ID:
00663049
Vues:
25
Nerissa,
We were getting this error quite frequently. What we found was that we missed a couple steps in the setup of the grids on our forms. While you are still learning the framework, make sure you review the developers guide each time you set up grids.

I seem to remember this particular problem being caused by replacing the "built-in" BizObj contained in the gridlist on one of your pages and then forgetting to disable the built-in BizObj. What happens then, is when you click the close or cancel buttons, it tries to access the BizObj you replaced, (which has no environment because you replaced it) can't find the data access object it needs to do other clean up functions and throws an error.

To fix this, right click each of your grids where you replaced the default BizObj with your own. In the builder, make sure the Enabled checkbox is unchecked, save each change, and try running your form again.

Hope that helps,
---J

>I encounter this error everytime I click the 'Close' cmdbutton on the first page or my Cbizobjmaintenanceform. But this error also occurred everytime I click the 'cmdCancelmaint' on the other pages. I compared everything with the sample ProjMgr. I found out that the difference is that I didn't set the data environment of my CListObj on the third page that I added. On the 3rd page is the CListObjEdit. After adding the data environment in the Builder window for CListObj, I was able to close my form properly without any error.
>
>I suggest that this error can be added to the error handling chapter of the DEVGUIDE document. This may help other developers who are just starting to use the framework.
>
>Thanks a lot for the information on Substring. This may really slow down the operation but our users really need this.
>
>Thanks a lot.
>
>Nerissa Dela Rosa
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform