Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Our latest solution for reports was inspired by Lisa Slater Nicholls. We use the beforeopentables method of the report to create a report variable to the calling form.
* BEGIN DATAENVIRONMENT.BEFOREOPENTABLES()
dodefault()
public roCaller
roCaller = _screen.activeform
* END DATAENVIRONMENT.BEFOREOPENTABLES()
Once this is done, our report can access Methods and Properties on the calling form. ie: roCaller.Method or roCaller.Property
This gives us a report that is encapsulated in a single SCX and an FRX.
We then use the on entry event of the Detail band to run methods on the calling form that in turn populates properties on the calling form. And finally the detail line reports the values of those properties.
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