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: 58
Joined: Sat Apr 30, 2016 11:46 am

Form V14SP2 : How to launch a browser from a form

Post by Rieko Saitoh »

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: 21
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 »

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: 472
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 »

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: 58
Joined: Sat Apr 30, 2016 11:46 am

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

Post by Rieko Saitoh »

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