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.
LotusScript:
dim dt1 as New NotesDateTime("01/01/90 00:00:00")
dim dt2 as New NotesDateTime("")
Call dt2.SetNow
UrlTag$ = Cstr(dt2.TimeDifference(dt1))
JavaScript:
// 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()
Formula:
urlTag := @text(@unique)
Then on the end of your urls, add the value of urlTag as such
"/path/db.nsf/view/DocKey?openDocument&" & urlTag
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
This was first published in November 2000