How to get dialog-transfer's created transaction?

Christian Stimming stimming at tuhh.de
Tue Jun 24 02:01:57 CDT 2003


-----BEGIN PGP SIGNED MESSAGE-----

Hi all, I have just a very simple (read: non-db related :-)))))) question: I 
would like to run a gnc_xfer_dialog (src/gnome-utils/dialog-transfer.h), and 
I would like to retrieve the Transaction that is created after that dialog 
finished. 

Background: I'd like to implement off-line preparation of online money 
transfers (through HBCI). The user should be able to enter several 
transactions, each through the gnc_xfer_dialog (i.e. the non-HBCI specific 
part), and the HBCI interface will change the transactions later, depending 
on whether the online execution was successful or not. E.g., the reconcile 
status might be set to "confirmed" for successful transactions, and 
unsuccessful ones might get deleted altogether.

Status: Currently there is no way to get any hold of the Transaction that was 
created in the gnc_xfer_dialog -- it is created inside the 
gnc_xfer_dialog_ok_cb inside one particular code block, and there is no 
pointer at all about the created Transaction anywhere else.

Question: I'd like to add a "Transaction*" field to the struct _xferDialog, 
plus an appropriate getter function, where a pointer to that transaction is 
stored after it got created. Any objections about introducing that data 
field?

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iQCVAwUBPveG5mXAi+BfhivFAQFgagP/cFX5mW125tJNY+hCkFWXuYdNuR30rWIK
2UyUb1DKN9bzH0mgho+mgyEOVPzXXGGCKmpe9Dee8zJVnps9gwZoJvGQe2X/znX5
sLhB12HoIC2if+TL3+JHSo0B+9nCAAei0q23OsJRN15WMjn/aDhS/VWjA5FRRqGv
i7IwqQ9CjrM=
=XM9n
-----END PGP SIGNATURE-----



More information about the gnucash-devel mailing list