FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
[WB26] YesNo Dialog and Filedisplay
[WB26] YesNo Dialog and Filedisplay
Débuté par a.martinez, 22 fév. 2024 12:21 - Aucune réponse
Connectez-vous…
a.martinez
#1
Membre enregistré
1 message
Posté le 22 février 2024 - 12:21
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
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