Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reports with view parameter, but not from form
Message
De
28/09/2004 18:42:45
 
 
À
28/09/2004 17:32:20
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00946964
Message ID:
00946999
Vues:
11
>How do you pass a view parameter to a report, with out using a form in the dtaaenvirnment beforeopentables method?
>
>I've got a form where I want to have a button on it that prints a one page report for the currently selected record in the initialselectedalias of the primary bizobj. I dropped a copy of the (subclassed) creportsobj on my form, and set up a view and data environment for this report. I know what I want to specify for the view parameter, so don't want to call up a form to make the user re-select what they've already selected on the existing form. I added a report variable to the report that is my view parameter. How do I set this so that it is there when the requery happens? Thisform is not accessible in BeforeOpenTables. Should I use _screen.activeform?

I'm not using the standard MM reporting options, so take this with a grain of salt. ;)

Try defining the report variable as Private within the button.click. You might also (have to) lobotomize the report's private data session so it uses the same one as your form.

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform