Advice on creating custom report for GST
Josh Sled
jsled at asynchronous.org
Thu Jan 6 09:13:23 EST 2005
On Wed, 2005-01-05 at 09:20, Benjamin So wrote:
> So the question is what is the best way to get my hands dirty in
> writing custom reports. I'm sure this topic must already have been
> covered in an earlier discussion, but I didn't have much luck searching
> the archives. Is there some sort of tutorial to get me started? I have
> a reasonable amount of programming knowledge, but none of it is in
> Scheme. I saw a reference to the Hello World report, but was unable to
> find the corresponding source file. In any case, a simple tutorial
> would be very useful, is one exists.
I don't think there's a tutorial or how to...
Scheme/lisp is pretty straightforward; there are plenty of good
resources on the next about it that google will help you find.
The hello world report is in
gnucash/src/report/utility-reports/hello-world.scm
which on my distro is installed into
/usr/share/gnucash/guile-modules/gnucash/report/hello-world.scm
A report basically consists of two parts: an options-genearator which
allows the reporting infrastructure to manage the report's options [both
UI and persistance], and the report-renderer which outputs HTML. This
may change in the future, but probably not substantially.
...jsled
--
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo ${a}@${b}`
More information about the gnucash-devel
mailing list