Form V14SP2 : How to launch a browser from a form

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Rieko Saitoh
Posts: 52
Joined: Sat Apr 30, 2016 11:46 am

Form V14SP2 : How to launch a browser from a form

Post by Rieko Saitoh » Tue Jun 15, 2021 4:18 pm

Hi all,

I would like to launch a web browser from a form and open a page with the specified URL.
Instead of displaying the web page on the form, I would like to start a browser and display a web page.
Does anyone know this method?

Thank you.

Best regards,
Rieko Saitoh
LANSA japan

User avatar
Fabrice.geay
Posts: 19
Joined: Tue Dec 12, 2017 2:06 am
Location: FRANCE
Contact:

Re: Form V14SP2 : How to launch a browser from a form

Post by Fabrice.geay » Tue Jun 15, 2021 7:52 pm

Hi Reiko,

if i have understand what you want to do try this code:

#STD_TEXT := "chrome.exe"

Use Builtin(SYSTEM_COMMAND) With_Args('H' #STD_TEXT 'www.LANSA.COM') To_Get(#STD_NUM)
Best regard

Fabrice GEAY

User avatar
Dino
Posts: 134
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: Form V14SP2 : How to launch a browser from a form

Post by Dino » Tue Jun 15, 2021 10:58 pm

Agree, just a quick suggestion to that, to open the page in the current default browser instead of just chrome

Code: Select all

* rundll32 url.dll,FileProtocolHandler https://www.lansa.com
Use Builtin(SYSTEM_COMMAND) With_Args('H' 'rundll32' 'url.dll,FileProtocolHandler' 'www.LANSA.COM') To_Get(#STD_NUM)

Rieko Saitoh
Posts: 52
Joined: Sat Apr 30, 2016 11:46 am

Re: Form V14SP2 : How to launch a browser from a form

Post by Rieko Saitoh » Thu Jun 17, 2021 4:30 pm

Hi Fabrice and Dino,

Thanks for your good advice, I am able to implement it.
Thank you for your support!!!

Best regards,
Rieko Saitoh
LANSA japan

Post Reply