Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Kelly.
>> If I set the control sources of each text box to the fields in the view then when i open the form it automaticly runs the view before i am
able to load the public variable with my date range that the view needs run the filter which has to be typed into one of
the textboxes in the same form. <<
Just set the View's NoDataOnLoad property to .T. in the DataEnvironment. Also, you do not need a public variable to requery the view. The variable just has to be in scrope when you requery. So, if you have a text box for entering the view parameters and a commandButton that refreshes the view, you can just call a form method called GetNewData or something like that from the commandButton's click (or from the text box's Valid() for that matter) and put code in the method something like this:
vp_Date = Thisform.txtDateParamter.Value
REQUERY( 'lv_whatever' )
Thisform.Refresh()
Marcia
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement