FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Validation of fields in a Table
Validation of fields in a Table
Débuté par brys, 26 avr. 2024 14:20 - 2 réponses
Connectez-vous…
brys
#1
Membre enregistré
3 messages
Posté le 26 avril 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?
Signaler
0
0
FDominicus
#2
Membre enregistré
2 messages
Posté le 27 avril 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
Signaler
0
0
meikl
#3
Membre enregistré
122 messages
Posté le 29 avril 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
Signaler
1
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
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