Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
THIS.Requery() isn't requerying
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00108868
Message ID:
00110458
Views:
21
Paul,

> Ah, OK. So is there some other way of doing it (the requery of other views)besides just manually selecting the view, view parameters and doing a =REQUERY()? If not, how about adding an additional column to aViewParameters so you could do the following:
>
>PostInitHook()
>DIMENSION THIS.aViewParameters[2,3] && 5 views in environment
>This.aViewParameters[1,VPARM_NAME] = 'vp_prop1' && Parameters assoc. w/view1
>This.aViewParameters[1,VPARM_EXPR] = 'This.prop1'
>This.aViewParameters[1,VPARM_VIEW] = v_view1
>This.aViewParameters[2,VPARM_NAME] = 'vp_prop3' && Param. w/view 3
>This.aViewParameters[2,VPARM_EXPR] = 'This.prop3'
>This.aViewParameters[2,VPARM_VIEW] = v_view3

The methodology of the Framework assumes a single view is to be manipulated by each business object. If you want to Requery() associated views at the same time that the business object's InitialSelectedAlias() is requeried, simply put the Requery() code in the business object's PostRequeryHook().

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform