Categorize all presentations of Lotusphere 2008 in Lotusphere Session Database / Lotusphere Journal via LotusScript import.
As the file names of the Lotusphere presentations contain only the session ids, you might want to import the PDF files into the Lotusphere Session Database (
"Lotusphere Journal 2008" ). This can be done with the LotusScript code below.
This is what you do:
- Create a LotusScript agent with the code below ( in any Notes database, agent properties / target: "None" )
- Change the parameters in the code according to your environment: a) the server where your Lotusphere Journal is located, b) path and filename of the Lotusphere Journal, c) path, where the Lotusphere presentations are located on your local machine
- Run the agent -> each file will be imported into the document with the corresponding session id
Next steps:
- Edit the form "Journal Entry | JournalEntry" in the Lotusphere Journal and add a richtext field with the name "Presentations" whereever you want the attachment to be displayed in the document (I don't use the existing field "Resources", as there might be hide-when-formulas within the richtext content).
- Add a column to the view "BySessionID", choose "Display as icon" in the column properties and enter "@If(@Attachments;5;0)" as column formula; this will show a symbol in the view "by session id", when a document contains an attachment.
Have fun!
------------------------------- Import-Code ----------------------------------------------------------
Sub Initialize
%REM
Used to import lotusphere PDF presentations into lotusphere journal.
Specify journal server and filepath as well as path to PDF files in parameters below.
In the design of your journal database you might want to do the following:
- open form "Journal Entry | JournalEntry" -> add a richtext item named "Presentations";
this will contain and display the PDF attachment when opening a session document.
This agent does not use the existing field "Resources", as there might be hide when formulas
within the richtext.
- open view "BySessionID" -> add column, choose "display as icon" in column properties and
enter the following formula code: @If(@Attachments; 5; 0)
this will display a symbol in the view "by session", when a document contains an attachment
http://marcus.foerster.com/yellowcat
%END REM
On Error Goto errorhandler
' ###### Parameters ##########
Const lotusphere08Journal_Server = "YOURSERVER" ' server where lotusphere journal is located
Const lotusphere08Journal_Filepath = "YOURFILEPATH\YOURFILENAME.nsf" ' filepath (path and filename) of lotusphere journal
Const lotusphere08PDFs_Filepath = "C:\YOURPATHCONTAININGPDFS\" ' filepath (path only) where pdf files are located
' ##########################
' open lotusphere08 journal
Dim db As New NotesDatabase(lotusphere08Journal_Server, lotusphere08Journal_Filepath)
If Not db.IsOpen Then
Msgbox "Unable to open journal database: " & lotusphere08Journal_Server & "!" & lotusphere08Journal_Filepath
Exit Sub
End If