FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Checkbox in report of webdev 25 not alligned properly
Checkbox in report of webdev 25 not alligned properly
Débuté par Henk DIJKSTRA, 04 juin 2020 18:06 - 1 réponse
Connectez-vous…
Henk DIJKSTRA
#1
Membre enregistré
5 messages
Posté le 04 juin 2020 - 18:06
When I include a checkbox in a report, the checkbox alignment depends on the contents of the next cell:
(the checkbox was configured to be aligned centered (both horizontal and vertical) if the next column "Date" contains
a value, the checkbox is properly centered, when the "Date" is empty, the checkbox is misaligned.)
Signaler
0
0
Henk DIJKSTRA
#2
Membre enregistré
5 messages
Posté le 29 juin 2020 - 15:07
I found a solution for this problem: it seems the alignment of checkboxes in reports depends on whether or not the field actually has a value, or not. If the value is not existing in the database the configured alignment is ignored resulting in the report shown above. So the solution is simple: if the value doesn't not exist replace it with a default value. (In my case '0' or false).
My original SQL query for that field was:
..
.
QRY_LastFinalBattery
.
result
AS
result
,
..
.
I replaced it with:
..
.
ISNULL
(
QRY_LastFinalBattery
.
result
,
0
)
AS
result
,
..
.
Henk
Signaler
0
0
→ Revenir à WEBDEV 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