I have been thinking about my question below and my gut feeling is that I
should combine the two FrmReportxx routines, get rid of the little form with
its OK button and make the whole thing a form method (and obviously change my
call from the button acordingly). Comments?
----- Original Message -----
From: Roger Lovelock
To: Dabo Users list
Sent: Saturday, December 13, 2008 11:24 AM
Subject: Running a Report
I've been following the discussion re interface methods for the spreadsheet
example with interest. I have successfully implemented a button to run a report
from my CD app, but I wonder if I am doing it the best/recommended way!
Basically, once my report was designed using ReportDesigner and saved in the
reports folder, I did the following :-
- Copied FrmReportBase unchanged from my AppWizard example into ui
- Copied FrmReportSample into ui and modified it to refer to my report
definition xml file (renamed it to FrmReport and updated __init___ also).
- Copied getSampleDataset into my db folder and changed the hard coded
dataset to my database format (renamed it to getDataSet also etc etc) - I
intend recoding this later to recreate the dataset from the database each time
it is run.
Placed the following code on my button (within the form xml file) :-
def onHit(self, evt):
frm = self.Application.ui.FrmReport()
frm.show()
frm.release()
Just wondered if this is following correct dabo 'philosophy'!
Thanks
Rodgy
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/363d1f2b15ce4865b487e350f679e...@roger