main logo
Subject: Re: Navigation
Author: graeme thomson
Posted: 2002/03/29 23:51:30
 
View Entire Thread
New Search


<i><font color="#663300">Here is my Init code for a child form:

LPARAMETER lcdistid,lcdistrict,lcsiteid,lcall
*!* gasb_lusite_form.init()
LOCAL lnFileStatus
lnFileStatus = dodefault()

IF EMPTY(lcall)
vp_cdistid = lcdistid
thisform.lblDist.caption = ALLTRIM(lcdistrict)
thisform.abo_district.cdistid = lcdistid
vp_csiteid=lcsiteid
thisform.abo_site.csiteid = lcsiteid
thisform.anavbuttons.visible=.F.
requery('v_site_dist_ro')
thisform.abo_site.requery()
thisform.refresh()
ELSE
thisform.anavbuttons.visible=.T.
vp_cdistid = lcdistid
thisform.lblDist.caption = ALLTRIM(lcdistrict)
thisform.abo_district.cdistid = lcdistid
requery('v_site_dist_ro')
thisform.requery()
thisform.refresh()
ENDIF



does your view definition include vp_csiteid in the FILTER? I presume it must do and yet there is no definition provided for vp_csiteid in your setup code after ELSE that is why the view is asking for it when you run the form. - it is defined if lcall is EMPTY only.
 
©2002 graeme thomson
<-- Prior Message New Search Next Message -->