Information générale
Catégorie:
The Mere Mortals Framework
>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
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