ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Starting a web browser URL session from Gen GUI C application

book

Article ID: 212629

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Run Time Distributed

Issue/Introduction

Have a Gen application with Windows-GUI 'C' Clients and now have a request to open a specific URL website within the default installed Browser (Chrome) from this Gen application.  How can this be accomplished? 

Environment

Release : 8.6

Component : CA Gen Run Time, GUI

Resolution

1.  Users could use the 'Launch' function to start/launch a URL from within a GUI application.  For example to launch an application (such as the Gen Support Portal) from Chrome, the command within Gen 8.6 on the Windows Toolset would be: 

Function Launch ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" support.broadcom.com")

(To add this statement, select the 'Functions' statement and then select 'Launch' from the list of functions and enter the launch string, in the example case:  "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" support.broadcom.com")

 

2.  Gen also offers the 'Call External' command for calling a web service, reference the following links.

https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-gen/8-6/developing/designing/designing-action-diagrams/define-logic-for-elementary-processes-and-procedures/add-assignment-actions/call-external-statement.html

Adding a Call External:

https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-gen/8-6/developing/designing/using-the-toolset/working-with-toolset/use-action-diagram/assignment-action-statements/add-a-call-external-statement.html

 

3. A third option would be to call/launch an URL website via an External Action Block (EAB) or using the Gen Inline Code feature.