I have been attempting to learn scheme and create a new report for
gnucash for about a week now. I downloaded the MIT Scheme documentation
(reference manual) and have read that (best described as suitable for
those expert in Lisp). I used one of the reports already written as a
basis and have modified it for what I need.

My problem:
    I have two procedures, p1 and p2. p1 is called by the renderer with:

        1: a list of accounts as chosen by the user
        2: an ending date specified by the user - usually the current
date
        3: a boolean specifying whether to display sub-accounts.
    p1 uses 'map' and calls p2 with each account in the first parameter
and parameters 2 and 3. p2 gets the account name and balance  and if
parameter 3 is true: calls 'gnc:account-get-children' and then calls p1
with the returned list and parameters   2 and 3.

The initial call to p1 is successful, and the initial call to p2 is
successful. If parameter 3 is true, the recursive call to p1 is then
executed successfully. The whole thing breaks down at this point though
because the layer 2 call from p1 to p2 is unsuccessful. I get the error
window stating that the argument of 'map' is of the wrong type. The
argument which is of the wrong type is the list of children obtained
from the call to 'gnc:account-get-children' in p2.  The error message
states simply that the argument is of the wrong type - it doesn't say
what type is expected or what type is used in the call.

Any ideas?? I can send the file to anybody who thinks they can help.


--
Gnucash Developer's List 
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to