Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Requrying BizObjs in Page Activate
Message
De
12/08/2004 16:58:44
 
 
À
11/08/2004 19:39:56
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00932544
Message ID:
00932953
Vues:
22
>On page 121 of the Dev Guide, under the heading of "Manually Requerying Business Objects", it says taht you can "requery the Business object when the page is activated and the record pointer in the parent business object has moved since the last time the page was activated", but there is no example of how to do this.
>
>Does the BizObj method GetFilePos return the record pointer? If so, then in the page activate, I could compare the current record pointer with the one from last time and go from there.
>
>Is there a method or property or something that returns the number of records in the view?

Right click on your business object and select Builder. This should give you the Mere Mortals Business Object Builder. Learn to love it. :) On the Properties tab, you can set the requery type for the business object, and the third option (Requery if first time activated after last form activate) sounds like what you want.

Business objects have an lNoRecords property you can check, but I can't think of one off the top of my head that will give the number. (Anybody else?) I usually just SelectAlias() the view and count.

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform