General information
Category:
Reports & Report designer
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only