E' sufficiente creare un link del tipo notes://
Questo link, lancia il client notes (se non già aperto) e vi posiziona sul database, o vista o documento che avete indicato nel link.
In genere un Notes link sembra un file XML: se copiate ed incollate un doclink in notepad, questo è il risultato
Allora se volete creare un link ad un database, utilizzate questa URL, rimuovendo i "due punti".
notes://hostit1/C12570AF00594B70
Se dovete linkare una vista, allora aggiungere l'identificativo della vista, senza i caratteri "OF" e "-ON" ed i due punti
notes://hostit1/C12570AF00594B70 /38D46BF5E8F08834852564B500129B2C
Se invece volete lincare il documento, allora
notes://hostit1/C12570AF00594B70 /38D46BF5E8F08834852564B500129B2C /60CC32C81C828F57C12570EC0064EAF0
Un trucco per avere immediatamente tutta la URl di un documento o vista che state visualizzando, è quello di cliccare due volte sulla piccola freccia in basso della "barra degli indirizzi" di notes.. quella che vi consente di inserire URL web.
Tutta la URL del documento che state elaborando verrà visualizzata immediatamente.
1 Commenti:
1.Vi segnalo che il notes url link funziona solo se in una chiave di registro di windows e' presente l'url "notes://" .
trovate la descrizione della chiave da modificare nel file "nbrowser.zip" a questo sito : { Link }
una parte del testo in inglese e' il seguente :
>>You'll have to add a series of keys to HKEY_CLASSES_ROOT section. The main key you add is “notes”. Give it a default value of "URL:Notes Protocol". Add a string value labeled, “URL Protocol”, but make the value blank. Under notes, add the key “DefaultIcon”. Set its default value to "c:\lotus\notes\notes.exe", but use the correct path for your system. Add a shell key under notes, then an open key underneath shell, and then a command key underneath the open key.
For shell, don't set a default value. For open, set the default value to "Open With Notes". For command, set the default value to "c:\lotus\notes\notes.exe %1". (Use the correct path for your system.)
<<
2.Allego il codice lotus script per creare un "document notes url link" in un agente in un db di notes.
Per funzionare devono essere rispettate queste condizioni:
il documento deve essere stato salvato in precedenza
il db con questo codice deve essere sul server
il db deve avere una vista di default
codice:
Sub Initialize
'set this code to create a Notes url text link for selected document
Dim session As New NotesSession
Dim db As NotesDatabase
Dim workspace As New NotesUIWorkspace
Dim collection As NotesDocumentCollection
Dim uidoc As notesuidocument
Dim doc As NotesDocument
Dim uiview As NotesUIView
Dim view As notesview
Dim docID As String
Dim ReplicaID As String
Dim HintServer As String
Dim ViewID As String
Dim NoteID As String
Set db = session.CurrentDatabase 'Set db to the current Notes database (open)
Set uiview = workspace.Currentview 'Set uiview to the current view (open)
Set collection = db.UnprocessedDocuments
If collection.Count <>1 Then ' check for one selected document
Msgbox "You are not allowed to select more than once document", 4112, "Info"
Exit Sub
End If
Set doc = collection.GetFirstDocument
If doc.IsNewNote Then
Msgbox "This document has not been saved." & Chr$(10) & Chr$(10) & "Please save prior to mailing link!", 4112, "New Document"
Exit Sub
Else
docID = doc.UniversalID
End If
If db.server = "" Then
Msgbox "You are not allowed to send a link of a local database", 4112, "Local Links Not Allowed"
Exit Sub
Else
servername= db.server
Set ser= New NotesName( servername )
server = ser.common
ReplicaID=db.ReplicaID
End If
ViewID = ""
Set View = UIView.View
ViewID= view.universalID
If ViewID = "" Then
Msgbox "This database does not contain a default view." & Chr$(10) & Chr$(10) & "Please contact your database manager!", 4112, "Default View Not Found"
Exit Sub
End If
label= Lcase(db.title)+ " : " + doc.title(0)
Identifier = "Notes://" + server +"/"+ ReplicaID + "/" + VIEWID + "/" + docid
Print identifier
End Sub
nota: questo codice e' simile a quello usato per creare il notes link negli NDL file.