× 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.



> Looking for the method and some sample code to do the following.
> 
> While using an Client Access green screen RPG program
> 
> The user selects a particular line item displayed on the screen
> 
> The RPG program sends a URL to a windows browser program (either running
> or to be started) 
> 
> The browser program would then make a normal internet request for a page
> to be displayed and that window would get focus.
> 
> The URL target is not on the AS400.

For the conditions you specify, create a CL with:
STRPCO
STRPCCMD PCCMD(&URL) PAUSE(*NO)

The &URL can only be a max of 123 characters.  Building the string correctly
can be a pain, particularly if you have a "?" in it (as we needed for our
web based configurator).  You should be able to find some mention of this in
the archives, but here's how we build our URL currently:

CHGVAR   VAR(&URL)   VALUE('start' *BCAT
'http:"//servername/csesc/cse?cmd=CUSTOM_CMD"'

Nothing else seems to get the question mark through correctly.  

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.