GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
[WB26] YesNo Dialog and Filedisplay
[WB26] YesNo Dialog and Filedisplay
Iniciado por a.martinez, fev., 22 2024 12:21 PM - Sem resposta
Conecte-se…
a.martinez
#1
Membro registado
1 mensagem
Publicado em fevereiro, 22 2024 - 12:21 PM
Hello
I have the following code on a button server code click (not ajax) that fist add data to some DB tables and then ask the user with a YesNo dialog box to print a report.
addtoDB
(
)
IF
YesNo
(
Yes
,
"Do you want to print?"
) =
Yes
THEN
iInitReportQuery
(
RPT_MYRPT
,
gn
MyID
)
iDestination
(
iGenericPDF
,
CompleteDir
(
fWebDir
(
)
)
+
gn
MyID
+
".pdf"
)
iPrintReport
(
RPT_MYRPT
)
FileDisplay
(
CompleteDir
(
fWebDir
(
)
) +
gn
MyID
+
".pdf"
,
"application/unknown"
,
gn
MyID
+
".pdf"
)
if I click yes then the YesNo dialog box does not close and is stuck open and if I click again I get the following error:
Invalid request: the page context 'WebDevMessageBox' is unknown.
Check:
- the requested url,
- the validity of the page name.
- the presence of the page context (the context may have been closed by ContextClose or PageUse).
(8, ERR_BAD_PAGE)
I tested and if I comment the Filedisplay, the YesNo closes normally. But now how can I download that file? Any alternatives or tips?
Thank You
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