Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delay instantiation of a bizobj
Message
De
16/11/2000 17:44:30
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00442936
Message ID:
00442955
Vues:
15
>Hi!
>
>Is this at all possible? I think I found out why my forms take so long to instantiate the first time I run them.
>
>Even though the nodata clause is used for bringing the views in the bizobjs online, some querying does take place (acording to vfp help).
>
>Is there a way to delay this until I REALLY need the view to be activated?
>
>That's where the title of this thread comes from.
>
>Some of my bizobjs use rather complicated views that take long to even return an empty cursor and I think this is what's causing my forms to appear sloppy.
>
>Thanks!
>
>Alex

Even with NODATA, the tables still need to be opened. That's what causes the delay.

If you're using pageframes, the easiest solution is to set up a container for each page containing all objects that live on the page. Instantiate that container only when the user activates the page for the first time. When we did this, our main Order form went from 2+ minutes to pop down to under 20 seconds.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform