PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
[WB26] YesNo Dialog and Filedisplay
[WB26] YesNo Dialog and Filedisplay
Started by a.martinez, Feb., 22 2024 12:21 PM - No answer
Connect yourself…
a.martinez
#1
Registered member
1 message
Posted on February, 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
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text