Manage Learn to apply best practices and optimize your operations.

Launch Web sites from a view

This code checks the mode to determine whether to open the document for editing or launch the Web site.

We wanted to have users launch a Web site directly from a view. We created a form, which contained the Web site name and the URL. We created a view to show these documents. The column containing the URL was formatted to resemble a hyperlink. To actually launch the Web site, we included code that would run on the PostOpen event. However, this did not allow the users to edit the document. To solve this problem, we require the users to select the document and then press a button called "Edit Web Link" which opens the document in edit mode. The code checks the mode to determine whether to open the document for editing or launch the Web site.

        Sub Postopen(Source As Notesuidocument)
	Dim ws As New NotesUIWorkspace
	Dim doc As NotesDocument
	
	If source.EditMode = False Then
		Set doc = source.document
		Call ws.URLOpen(doc.WebURL)
		source.close
	End If
End Sub
		

Dig Deeper on Domino Resources - Part 6

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