Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requrying BizObjs in Page Activate
Message
From
12/08/2004 16:58:44
 
 
To
11/08/2004 19:39:56
June Kendrick
Kendrick Associates, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00932544
Message ID:
00932953
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform