GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
Validation of fields in a Table
Validation of fields in a Table
Iniciado por brys, abr., 26 2024 2:20 PM - 2 respostas
Conecte-se…
brys
#1
Membro registado
3 mensagems
Publicado em abril, 26 2024 - 2:20 PM
Hello, I have a Table control directly bound to a data file.
I want to be able to make some validations before the user input is sent to the database.
I'm struggling to understand what I should do and where.
Can you help me?
Denunciar
0
0
FDominicus
#2
Membro registado
2 mensagems
Publicado em abril, 27 2024 - 6:56 AM
With high likliness you want to do somthing in the Whenever Modifying even
or in the Deactivate Event, maybe you want to save some state while activating
// In Entry of the Column
v
SavedVal
=
MySelf
// In whenever modifying Control
IF MySelf
=
"Test"
THEN
Info
(
"I don't like that value, resetting"
)
;
MySelf
=
v
SavedVal
END
Denunciar
0
0
meikl
#3
Membro registado
122 mensagems
Publicado em abril, 29 2024 - 7:52 AM
//Exit from a row of <TableControl>
//Sample avoid same Values on two Fields
IF MySelf
.
InputInProgress
(
)
THEN
IF
CO
L_Field1
=
CO
L_Field2
THEN
Error
(
"Fields cannot have the same Value"
)
ReturnToCapture
(
)
END
END
Denunciar
1
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto