Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent View's parms being loaded at form starts
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00160633
Message ID:
00161960
Views:
18
At that time, your advice worked. Now, the view parameters are being requested once again at startup, page-1.

My dataEnvironment is this:
DEFINE CLASS DepartMaintEnvironment AS Dept_APPEnvironment
FUNCTION LoadCursors()
DIMENSION this.aCursors[1]
this.aCursors[1] = 'v_vdepartment'
ENDFUNC
ENDDEFINE

My viewClass is this:
DEFINE CLASS v_vdepartment AS CDynamicViewCursor
* NoDataOnLoad = .F. && .F. = view contains data.
cCursorSource = 'v_vdepartment'
ENDDEFINE

I have turn “NoDataOnLoad” off and on with no effect.

My postInitHook is this:
DIMENSION This.aViewParameters[1, 2]
This.aViewParameters[1,1] = 'lndepartmentID'
This.aViewParameters[1,2] = '0' && 'v_vdepartment.department_id'

I would appreciate any suggestions.

Thanks…
Melvin…
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform