FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 25
→
WD21 - como atualizar registro na tela a partir de outra tela?
WD21 - como atualizar registro na tela a partir de outra tela?
Débuté par Mister ANDRE MARTINI, 20 oct. 2016 17:35 - 5 réponses
Connectez-vous…
Mister ANDRE MARTINI
#1
Membre enregistré
212 messages
Popularité : +25 (25 votes)
Posté le 20 octobre 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
Signaler
0
0
BOLLER
#2
Membre enregistré
3 659 messages
Popularité : +175 (223 votes)
Posté le 20 octobre 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/
Signaler
0
0
Mister ANDRE MARTINI
#3
Membre enregistré
212 messages
Popularité : +25 (25 votes)
Posté le 20 octobre 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
Signaler
0
0
Mister ANDRE MARTINI
#4
Membre enregistré
212 messages
Popularité : +25 (25 votes)
Posté le 20 octobre 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
Signaler
0
0
BOLLER
#5
Membre enregistré
3 659 messages
Popularité : +175 (223 votes)
Posté le 20 octobre 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/
Signaler
0
0
Mister ANDRE MARTINI
#6
Membre enregistré
212 messages
Popularité : +25 (25 votes)
Posté le 20 octobre 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
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte