gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] How to iterate over all the records of a block in a trigger


From: Andreas Fromm
Subject: Re: [GNUe] How to iterate over all the records of a block in a trigger
Date: Sun, 21 Aug 2005 16:17:11 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reinhard Mueller wrote:

> Am Samstag, den 20.08.2005, 21:16 +0200 schrieb Andreas Fromm:
>
>> I tried different ways of calling the getResultSet method,
>> first-/nextRecord and so on, on different objects (blokname,
>> form, etc. ) but always got an exception from __getattr__.
>
>
> IIRC you should be able to iterate over the result set object you
> get from getResultSet like
>
> for record in myBlock.getResultSet: if record.foo: record.bar =
> 'baz'
>
> HTH, Reinhard
>
>
> ----------------------------------------------------------------------
>
>
> _______________________________________________ Gnue mailing list
> address@hidden http://lists.gnu.org/mailman/listinfo/gnue

Well, I can not. I allready tried but I get an TypeError: iteration
over non-sequence.


Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDCIzmUmBtSMq5cGURAvaaAJ0QHwUzsA6g3ex3Gd8UAayspOxoGACgh3KE
fI0Dvxvl0MeV28MSfGM4b9s=
=Oo1S
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]