Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I See Variables & Fields at Design Time?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00124639
Message ID:
00124653
Vues:
24
>In a frmRepByEmp, I have set up for the user to make an employee selection from cboEmpNo and a date range selection from txtBegDate and txtEndDate. The ControlSources for txtBegDate and txtEndDate are memory variables mBegDate & mEndDate, respectively.
>
>When in the Report Designer, I notice that the Data Environment is not the same as it is in the Form I have set up to call this report from. Consequently, field name listings are not availble. Also, mBegDate & mEndDate are not available.
>
>Is there something I can do about this at design time in the Report Designer, or do I just go ahead and reference fields and variables that the Report Designer doesn't know about at design time? TIA, CH.

First, if you're setting a filter or doing a cursor for the report, you should set the report 'Private Datasession' to OFF (unchecked) and make sure that your dataenvironment is empty. That way the report will take data from the calling form's data environment.

When you're putting fields onto the report, you can add the tables to the DE temporarily and drag fields or just type them in. The Report Designer doesn't care at design time. If you make a typo, then when you try to run the report it will fail and load the offending field/variable into the Property screen to be checked.

Another option is to declare mBeDate and mEndDate public (or applicaton object properties) and build your cursor in the INIT of the report (to see the methods/properties open the DE, right-click and choose Properties).

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform