FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 25
→
WD21 - como atualizar registro na tela a partir de outra tela?
WD21 - como atualizar registro na tela a partir de outra tela?
Iniciado por Mister ANDRE MARTINI, 20,oct. 2016 17:35 - 5 respuestas
Conéctese…
Mister ANDRE MARTINI
#1
Miembro registrado
211 mensajes
Popularité : +25 (25 votes)
Publicado el 20,octubre 2016 - 17:35
Olá pessoal,
tenho um formulário de contas a pagar com diversos campos, entre eles VALOR PAGO e SALDO, neste formulário tenho uma TABLE referente a tabela pagamentos_do_cpa, para incluir pagamentos nesta TABLE/file tenho um outro formulário, meu problema é saber como atualizar os EDTs VALOR PAGO e SALDO depois de incluir/alterar um pagamento no outro formulário.
Obs.: no arquivo eu consigo atualizar, mas na tela (edt) não, tentei o filetoscreen() mas não atualizou
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Informar
0
0
BOLLER
#2
Miembro registrado
3.659 mensajes
Popularité : +175 (223 votes)
Publicado el 20,octubre 2016 - 18:09
Andre,
faz assim...
na janela filha coloque o nome da janela mae e o nome do controle que quer atualizar
como é uma table seria mais ou menos assim:
tabledisplay(win_janelamae.controletabledesejado, tareexecutequery)
tabledisplay(win_janelamae.controletabledesejado, tainit)
isso estando na janela filha
só isso, só colocar o caminho completo, simples assim!
ok
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Informar
0
0
Mister ANDRE MARTINI
#3
Miembro registrado
211 mensajes
Popularité : +25 (25 votes)
Publicado el 20,octubre 2016 - 19:19
não é a table o problema (a table eu consigo dar o refresh tranquilo conforme mostrou acima), eu preciso atualizar um EDT (vinculado a um campo do arquivo) do formulário a partir de outro formulário
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Informar
0
0
Mister ANDRE MARTINI
#4
Miembro registrado
211 mensajes
Popularité : +25 (25 votes)
Publicado el 20,octubre 2016 - 19:53
Resolvido, primeiro preciso dar um HReadSeekFirst e depois um FileToScreen
Conforme documento o FileToScreen le o arquivo, apenas pega da memória, se houve alteração do arquivo tem que recarregar na memória com o uns dos comandos HRead, HReadSeek, HReadFirst
"FileToScreen does not read the data file. The value of the record loaded in memory is used to initialize the controls.
Therefore, a record must be loaded in memory beforehand (HRead, HReadSeek, HReadFirst, ...)."
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Informar
0
0
BOLLER
#5
Miembro registrado
3.659 mensajes
Popularité : +175 (223 votes)
Publicado el 20,octubre 2016 - 19:54
Boa tarde,
Faz assim na janela filha:
win_janela_mae.edt_campo = valor
Deu certo assim?
É a mesma técnica
ok, André?
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Informar
0
0
Mister ANDRE MARTINI
#6
Miembro registrado
211 mensajes
Popularité : +25 (25 votes)
Publicado el 20,octubre 2016 - 20:01
assim:
win_janela_mae.edt_campo = valor
não tinha resolvido para mim, por isso fiz conforme videoaula.
obrigado
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Informar
0
0
→ Volver a WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto