[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Atualizar a Tela Principal Apos a inclusao de Registro
Página 1 de 1

Atualizar a Tela Principal Apos a inclusao de Registro

Enviado: Abril 25th, 2012, 7:27 am
por mmsystems
Bom dia

Como poderia atualizar uma GridConsulta de outro terminal apos a inclusao
de um registro novo em outro Terminal, sem precisar mandar atualizar,
ou fazer com que ela se atualize a cada 10 segundos

Grato
Maurcio
MM SYSTEMS

Re: Atualizar a Tela Principal Apos a inclusao de Registro

Enviado: Abril 26th, 2012, 10:29 am
por Gustavo
Olá,

Você pode inserir um timer no formulário e no evento OnTimer inserir a seguinte instrução:

if not (TabelaPrincipal.Modificacao or TabelaPrincipal.Inclusao) then
TabelaPrincipal.AtualizaSql;


Defina o intervalo que deseja no Timer.
Lembrando que 10 segundos equivale a 10.000