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



If you have/use iSeries Access, you could do something like:

STRPCO

STRPCCMD PCCMD('start http://www.google.com') PAUSE(*NO)

within a CL or via QCMDEXC. The link could be a hidden field that gets passed to the CL. In the example you gave below it looks like you would, instead, be building the string within your program and passing that to the CL. I've done a couple of tests with this, but never implemented it for users. You do need to be aware that the STRPCO command only needs to be run once per job so you would probably want to monitor for that (IWS4010). All of my tests were in CL's but I would think that both commands would work from within an RPG program using QCMDEXC.

The application you used as an example is a simple zip code lookup. That looks like a very good excuse for a string build based upon some condition (function key or simply the zip code not on the panel in question). If that is the application you're trying to invoke, putting the URL on the screen seems like more trouble than it's worth - for both you and the user.
The Post Office may, also, have a web service that wouldn't even require a web page. But we're getting way over my head here. Scott Klement (www.scottklement.com) has some programs illustrating this concept. You would have to find the link to the USPS web service.


* Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
615.995.7024
fax
615.995.1201
email
jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



tim wrote:
Jim,
Something like this:

http://zip4.usps.com/zip4/welcome.jsp?address2=15 main
street&address1=suite100&city=paramus&state=NJ



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jim Mergen
Sent: Tuesday, September 25, 2007 11:31 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Hyperlnik on green screen?

I am not sure how to handle URL too long to fit the screen, I would think
you could wrap them. Let me play with it and get back to you. Can you give
me an idea of what you are trying to do, an example?
Thanks
Jim
jmergen@xxxxxxxxxxx



-----Original Message-----
From: rpg400-l-bounces+jmergen=pctcnet.net@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+jmergen=pctcnet.net@xxxxxxxxxxxx] On Behalf Of tim
Sent: Tuesday, September 25, 2007 10:24 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Hyperlnik on green screen?

Jim,

How could I use this logic for longer urls that wont fit on the screen?

With the hidden field suggestion, how would that work if the user can see
it? Can I have multiple urls that are hidden and be able to navigate to
them?



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jim Mergen
Sent: Tuesday, September 25, 2007 11:10 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Hyperlnik on green screen?

Using Client Access, if you put a hyperlink anywhere on a screen(can also be
hidden) you can double click it and a browser window will appear. For
instance, cut and paste http://www.yahoo.com on a command line, then double
click on it.

I was playing around putting a hidden link on an Item Master, then by
clicking it(or function key) link to a network file with a picture.

Jim
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of tim
Sent: Tuesday, September 25, 2007 10:01 AM
To: Rpg Forumn
Subject: Hyperlnik on green screen?

Is there a way to create a hyperlink to a webpage on a green-screen?


If so, what would the requirments be?


Thanks.



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.