Solved

opening internet explorer from client access with attached string in the url

Posted on 2004-09-17
7
365 Views
Last Modified: 2008-01-16
pls pardon any and all ignorance as I'm an as400 novice..
I have an as400 application which I run using client access..I need to be able to extract values from specific positions on the client access window and then launch a web site in internet explorer, with the extracted value attached to the web site url as a query string.

Thank you all much, in advance..
0
Comment
Question by:krisme77
7 Comments
 
LVL 3

Expert Comment

by:Mind_nl
Comment Utility
There is a "run pc command" command where you can have your client access session start iexplore.exe with a URL. What exactly do you want to do? I'm not sure what the exact command is... I'll check on monday when I'm @ work...
0
 
LVL 32

Accepted Solution

by:
shalomc earned 125 total points
Comment Utility
try the following CL:

pgm
strpco
STRPCCMD PCCMD('C:\PROGRA~1\INTERN~1\iexplore.exe http://www.yahoo.com/')
endpgm

ShalomC
0
 
LVL 3

Expert Comment

by:Mind_nl
Comment Utility
Yeah, thats the one I was talking about...
0
 

Expert Comment

by:mlaman
Comment Utility
shalomc has the correct syntax:

in your cl program
(1)  STRPCO (this will start the pc organizer, you might have to monitor for and IWS0000 message if it is already started to avoid an informational message)
(2)  STRPCCMD (this will run the pc command on the local pc)

There is one other way that is much easier, especially if you are on a more recent version of client access...

From the pull down window, select Edit, Preferences, Hotspots...

You will see an option called 'Execute URL'  if this option is selected and the green screen is showing a web address (such as http://www.yahoo.com), all the user has to do it double click on the screen where the text is and client access will automatically open up a browser and go to the url.  It sounds like this might be your easiest bet especially if the users are already seeing the url on the green screen.

The optional 3-D buttons parameter will make the link look like a Windows GUI based link...even cooler and more intuative.

Hope that helps, we use the STRPCCMD all the time here to execute PC jobs.

</mitchel>
0
 
LVL 1

Expert Comment

by:SuperCCA
Comment Utility
Hopefully the URL is present on your screen. If it is other information yoiu need to lift from your green screen window then you need to work either with EHLLAPI or HACL. You say you are a AS400 novice but if you have reasonable VB or C++ skills these interfaces are OK. Let me know if you need more or if the previos respondents have already given you what you need.

Cheers
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now