Re: How to iterate over all the records of a block in a trigger
Reinhard Mueller <[email protected]>
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Organization | GNU Enterprise |
| Message-ID | <[email protected]> |
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
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDCF454LscQraoxVkRAobQAKCGMX991Bb+kPxUmLBUmkVHneUwwgCgiFAL Yv34Bo2VKKwfTOUXehfzAz4= =vAGg -----END PGP SIGNATURE-----