Manage Learn to apply best practices and optimize your operations.

Open frameset based on Notes version

In the Notes Client, have you ever wanted to open a different frameset based on what version of the Notes client is running? You can open a frameset based on a formula value in the frame properties type and value with no problems. But the @Version provides a build number, not a 5.0.3 or 5.0.#. Script gives the whole Version 5.0.3 March... but cannot be put in the Frame properties. To get around this, have the single framed frameset (create a framset and delete one frame) open a page. The page can then be used to run the script. The code below shows looking for "Release 5.0.3" explicitly. The final statement, source.close, closes the frameset used to open the desired frameset so only that one remains. The launch properties can then be set to open to the single framed frameset!
Sub Postopen(Source As Notesuidocument)
 Dim strNotesVersion As String
 Dim session As notessession
 Dim ws As notesuiworkspace
 Set session = New notessession
 Set ws = New notesuiworkspace
 strNotesVersion = session.NotesVersion
 strNotesVersion = Left(strNotesVersion,Instr(strNotesVersion,"|") - 1)
 strNotesVersion = Trim(strNotesVersion)
 If strNotesVersion = "Release 5.0.3" Then
  Call ws.OpenFrameSet("mainframeset")
 Else
  Call ws.OpenFrameSet("mainframeset2")
 End If
 source.close
End Sub

Dig Deeper on Lotus Notes Domino Administration Tools

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