× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I don't think CGIDEV2 will help with that. That sounds like a javascript
function you'd want to use.

You could roll your own or use the confirm() javascript function and only
start the download if that is true.

https://www.w3schools.com/jsref/met_win_confirm.asp

You would have to change your link as well and then actually redirect to
the download link if they select OK and confirm.


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #15 <https://www.bvstools.com/mailtool.html>: The ability
to add a Footer to each email sent using an IFS stream file.

On Fri, Apr 24, 2020 at 10:57 AM john art <jhon_art@xxxxxxxxxxx> wrote:

Hi all

I am playing with Upload/Download for iSeries utility from /
www.easy400.net ; i’m using it from my RPG program to download a file
from IMB i to my PC .

Running this code in my rpg

PCCMD(''start ' +

' http://myibmi:8027/fuploadp/fdnload.pgm+?xfile=/' +

'/tmp/' + %Trim(TmpObj)+ '.xls' + ''')' +

' PAUSE(*NO)';

it download the document in my pc. I would like, before the download, show
to user a web page that ask confirm to the download, but having no
knowledge about CGIDEV2, i’m not able to do that. The program already does
a similar operation (if file not exist), but i don’t know how to menage a
situation where the first time ask confirm and then (second time) run the
download

thanks in advance



P.S. the source code of the program is at
https://www.easy400.net/fuploadp/dspsrc.cgi?srclib=fupload&srcfil=qrpglesrc&srcmbr=fdnload


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.