Manage Learn to apply best practices and optimize your operations.

Creating Unique Urls

This code can be used to generate a unique url for a document so the browser
always reloads the document. This is particularly hopeful when using embedded
views and being sure the views get refreshed when a user returns to the doc
with the embedded view.

dim dt1 as New NotesDateTime("01/01/90 00:00:00")
dim dt2 as New NotesDateTime("")
Call dt2.SetNow
UrlTag$ = Cstr(dt2.TimeDifference(dt1))

// getTime returns the number of milliseconds since 1/1/70 00:00:00 and the
value of today as a string
var today = new Date()
urlTag = today.getTime()

urlTag := @text(@unique)

Then on the end of your urls, add the value of urlTag as such
"/path/db.nsf/view/DocKey?openDocument&" & urlTag

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials'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 ...