FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
Validation of fields in a Table
Validation of fields in a Table
Iniciado por brys, 26,abr. 2024 14:20 - 2 respuestas
Conéctese…
brys
#1
Miembro registrado
3 mensajes
Publicado el 26,abril 2024 - 14:20
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?
Informar
0
0
FDominicus
#2
Miembro registrado
2 mensajes
Publicado el 27,abril 2024 - 06:56
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
Informar
0
0
meikl
#3
Miembro registrado
122 mensajes
Publicado el 29,abril 2024 - 07:52
//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
Informar
1
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
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