Date index for Aug 2004


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

Re: [achievo] Variables not updating in display when Save is hit



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

Hi,

I'm moving this thread to the developers list, please reply over there.

Robert Beguiristain wrote:

> happens when they save the record. Here is the odd thing, while the
database
> record does update correctly, the displayed record still shows the old
> value. I am doing this in the postUpdate function with a update query. If
> the record is closed and then reopened it is then correct. I assume I need
> to change something in the session or change how I am approaching the
update
> but I am not sure how to address this in Acheivo. Can someone provide a
> clue.

What is the signature of your postUpdate method? If it's:

function postUpdate($record)
{
}

when the record itself is modified, the caller wouldn't notice this.

Perhaps, if you change it to:

function postUpdate(&$record)
{
}

the calling method will notice that the record is changed, and reflect
this when it displays the record in the edit screen.

Greetings,
Ivo

- --
Ivo Jansch <ivo dot 
ibuildings.nl BV - information technology
http://www.ibuildings.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBGj0g95NUnGFZm9cRAgaXAJ4/Lfp9qRKJxh6DyJu37JYNikXRSwCgjX/U
tvl7CBLVxqMdGsv8xwQQnv0=
=ci3r
-----END PGP SIGNATURE-----

http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV