Manage Learn to apply best practices and optimize your operations.

Change Web launch properties of a database

This tip describes how to alter the Web launch properties of a database.

Have you ever wanted to change a databases' Web launch properties from a browser or just from a LotusScript agent?

Well here is an easy to use LotusScript agent that allows you to do this.

You would call this agent via a link in your web page or a button. You could also create an agent to run on the last day of the month at mid night to change the web launch page to an appropriate page for the new month.

This is a simple script and can be modified to allow the Web user to change the Web launch option to any page that is in the database by passing in a query string.

For exapmple:
http://www.mysite.com/db.nsf/weblaunch?openagent&page=hello


Dim session As New NotesSession
 Dim db As NotesDatabase
 Dim docIcon As NotesDocument
 Dim path As Variant
 
 Set db = session.CurrentDatabase
 Set docIcon = db.GetDocumentByID
("FFFF0010")
 
 docIcon.~$DefaultWebLaunchPage
 = "construction.html"
 docIcon.~$Flags = docIcon.~
$Flags(0) & "F"
 Call docIcon.Save(True, False) 
 path = Evaluate(|@LowerCase
("/"+@ReplaceSubstring(@Subset
(@DbName;-1);"";"/"))|,docIcon)
 Print"["+path(0) + "/mypage?openpage]"
end sub

 
This was last published in April 2003

Dig Deeper on LotusScript

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close