QOF help!

Derek Atkins warlord at MIT.EDU
Mon May 3 09:54:20 EDT 2004


Neil Williams <linux at codehelp.co.uk> writes:

> I can't get this clear and I can't find any documentation on exactly how to 
> iterate over the existing, registered, GnuCash objects. At the moment, QOF 
> isn't make a whole lot of sense. Do I have to create and register yet another 
> object to query the invoice object? If not, how do I access the foreach 
> routine for GncInvoice?

I told you already..  You need to use qof_collection_foreach()
to iterate over all Entities in a collection.

> Where's the documentation for using QOF and Gnucash together?

Documentation!?!  HAHAHAHA!  Thanks, I needed a laugh this morning.

UTSL!

> which is fine. What is needed to iterate over both invoices?

Use the collection iterator.

> I'm not looking at queries today, I just want to get this iteration sorted out 
> in my head (and therefore in the gnc_book_merge documentation).

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list