[Top][All Lists]
[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: |
Bajusz Tamás |
Subject: |
Re: [GNUe] How to iterate over all the records of a block in a trigger |
Date: |
Sun, 21 Aug 2005 17:00:59 +0200 |
On Sun, 21 Aug 2005 12:58:01 +0200
Reinhard Mueller <address@hidden> 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'
The correct syntax is:
for record in myBlock.getResultSet():
if record['foo']:
record['bar'] = 'baz'
Bajusz Tamás
- [GNUe] How to iterate over all the records of a block in a trigger, Andreas Fromm, 2005/08/20
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Bajusz Tamás, 2005/08/20
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Reinhard Mueller, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Andreas Fromm, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger,
Bajusz Tamás <=
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Reinhard Mueller, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Andreas Fromm, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Reinhard Mueller, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Reinhard Mueller, 2005/08/21
- Re: [GNUe] How to iterate over all the records of a block in a trigger, Andreas Fromm, 2005/08/22