Link to home
Start Free TrialLog in
Avatar of DominoDev
DominoDev

asked on

Opening a URL from lotus script agent

Hello

I would like to open a URL from lotusnotes client, the agent runs the report and saves in notes client. I want to open same document using LotusScript or may be using formula within Lotusscrpt, below is the document code.

If  NewReportDoc.Save(1,0) Then
            ' Here I am saving document of report and I want to open it for user on web.

else
  'do nothing.

end if
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Lots of potential ways.  From formula you can use:

@URLOpen("HTTP://WWW.DRAGON-IT.CO.UK")

From LotusScript you could use notesuiworkspace.urlopen:

Dim workspace As New notesuiworkspace
strURL = "http://scripts.dragon-it.co.uk/"
workspace.UrlOpen strURL

Or if you want a specific browser you could use, for instance, the  shell command

x=Shell ("c:\program files\internet explorer\iexplore ""http://scripts.dragon-it.co.uk/""")

Steve
Please try to explain better what you have in mind and what you want to do. We're good in guessing games, but it is a lot easier for us if we don't have to guess everything...

What I'm guessing here is that:
- you want to save a document
- you want to have a URL to this document
- you want someone (outside your company??) to open the document using this URL
- you want to send the URL by mail to this someone

How am I guessing here? Please correct me if or where I'm wrong.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.