GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
Checkbox in report of webdev 25 not alligned properly
Checkbox in report of webdev 25 not alligned properly
Iniciado por Henk DIJKSTRA, jun., 04 2020 6:06 PM - 1 resposta
Conecte-se…
Henk DIJKSTRA
#1
Membro registado
5 mensagems
Publicado em junho, 04 2020 - 6:06 PM
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.)
Denunciar
0
0
Henk DIJKSTRA
#2
Membro registado
5 mensagems
Publicado em junho, 29 2020 - 3:07 PM
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
Denunciar
0
0
→ Voltar para WEBDEV 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