0
votes

My client uses Lotus Notes for calendering. We have a need to serve event information on SharePoint. I'm trying to create an HTML link or button I can use in a custom display form on SharePoint (HTML) that users can click to add the event to their Notes calendars. So far, I've found no way to do this.

An app exists on my client's Domino deployment(?) that creates buttons for use in Notes email messages that also can collect response information. The action of this button is handled by what looks like Java to me. I've included a sample in case it's relevant, and I can include all of it if it looks like it would be helpful, but it's quite long:

    Set CurDb=Session.CurrentDatabase
'Get mail file information from Location document using Notes.ini
    MailServer$ = session.GetEnvironmentString( "MailServer",True)
    MailFile$ = session.GetEnvironmentString( "MailFile",True)
'Set MailDB = session.CurrentDatabase
    If CurDb.Server = ""  Then
            'Attempt to open local mail file
        Set MailDB = session.GetDatabase("", MailFile$) 
        If Not MailDB.IsOpen Then
            Set MailDB = New NotesDatabase(MailServer$, MailFile$)  
            If Not MailDB.IsOpen Then
                Msgbox "Unable to add event to your calendar because your local and server mail file cannot be located.",16, "Notice"
                Exit Sub                  
            End If
        End If          
    Else
            'Attempt to open server replica of mail file
        Set MailDB = New NotesDatabase(MailServer$, MailFile$)  
        If Not MailDB.IsOpen Then
            Msgbox "Unable to add event to your calendar because your server mail file cannot be located.",16, "Notice"
            Exit Sub                  
        End If
    End If

The same app can create a "web" version that can be added to our current intranet platform, but it uses what looks to me like a custom "hook" to interact with the button application and the user's calendar, and it has no function if not placed within an object on that platform. I include the snippet here in case it offers a clue:

<input type="button" onclick="SendEmailNotification('PTHN-132512')"
value="Send me a Notes Calendar Invitation" id="HTMLWebBtn">

I'm wondering if using the snippet elsewhere is as easy as linking to a .js file in my source, and am waiting to hear back from people managing the platform internally, but experience says this is a dead end.

Searching on the Googlybox has so far been basically fruitless. I know you can have a link open Lotus Notes by replacing the http:// with Notes:// followed by the server's name and the application/database/document address (usually a sometimes-really-long string of alphanumeric characters). And I found an article containing strings you can place after the Notes:// to open a new document in a given application, i.e., the email editor. But that's as close as I've come.

Any help, folks?

1

1 Answers

3
votes

You can leverage the fact that Notes supports the .ics file format. When a ICS file is opened, Notes can respond by creating a new calendar entry. The best thing is that this works in other mail platforms too, in case your environment is mixed.

Here is some info on setting up Notes: http://www.ibm.com/developerworks/lotus/library/notes85-icalendar/

You can programmatically generate that ICS file, or if you're looking to just play around there are sites online that will generate one for you: http://www.pratie.com/lab/icalendar/