Show document in separate window in VLF-ONE

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
René Houba
Posts: 220
Joined: Thu Nov 26, 2015 7:03 am

Show document in separate window in VLF-ONE

Post by René Houba »

In a command handler I show a field with a document name, for example:
e:\abc\document.xls

I want to show an icon behind this field. When the end user uses the icon, the document need to be opened is a separate window in VLF-ONE.

How can this be done?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Show document in separate window in VLF-ONE

Post by Stewart Marshall »

Hi Rene

As I understand it, attempting to access a "local" resource in the browser is considered a significant security risk. If it were possible, any site could download an executable and run it.

The File:// protocol exists, but from what I can see, it has fairly limited capabilities.

When I tried to access something on my C drive, the Chrome console shows this message "Not allowed to load local resource"

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Show document in separate window in VLF-ONE

Post by MarkD »

A separate window is done by using #SYS_WEB.Navigate Url(<some url>) Target(New)
Post Reply