Pinning attachments

I was working one day and I used the attachment viewer to view a PDF a colleague had sent me.   Not realizing what I was doing, I switched back to the inbox to see what new email had come on. Guess what, the PDF disappears and a new selection was selected – I totally lost my place in the PDF. Doh..I just thought of a new cool feature!

I thought, how cool would it be if I could “pin” the attachment in the viewer so as long as its pinned the selected attachment never changes. This would allow me to navigate across many different documents and views and never lose the PDF I am reading. This was actually a dead simple feature and I hope to get this out on OpenNTF soon. I would be interested to hear if you think this is a good feature or not.

The pinning function is in the form of an icon that is put to the right of the page.  I just add a new boolean variable to the page and show the icons relative to its value:

function constructPin(){
 var headerArea = document.getElementById("header");

 if (_pinned){
      headerArea.innerHTML = "<img style="float: right;" title="Un-pin Attachment" src='icons/pinned-down.png' onClick="togglePin();"></img>";
 }else{
      headerArea.innerHTML = "<img style="float: right;" title="Pin Attachment" src='icons/pinned-up.png' onClick="togglePin();"></img>";
 }
}

The result is a clickable icon that toggles whether the current selection is pinned or not:

Pin Attachment

Unpin Attachment

Go ahead and install the following widget into your Notes client.  If you are not familiar with how to install the widget with the “extension.xml” below you can watch this video I posted that shows how to enable widgets and install the viewer.

Any and all feedback is greatly appreciated!

Advertisements

Demo: Attachment viewer for Notes 8

So I was challenged a couple of days ago by Art Thomas to give him an attachment viewer for when he receives images, movies, etc in mail and he just wants to immediately view them without launching them individually.  I started thinking about how I would implement it and I came to the conclusion that we kind of have the ultimate viewer right at our disposable – the SWT Browser!  So in short, watch the video and let me know what you think.

I gave this out internally for now as a Widget and also showed some people how to change their mail application to have the viewer embedded into Memo and Reply forms (as I demonstrate in the video).  I think this project will be good for OpenNTF and a couple of tutorial videos on how I did it….more to come.

For video click more.

Continue reading

New article: Creating an IBM Lotus Notes 8.0 and later plug-in for IBM Multimedia Library

A buddy in IBM Software Services for Lotus – Germany, Robert Schneider, wrote  a nice article about plug-in development and using the IBM Multimedia library.  This uses a Features and Plug-in widget to assist in the deployment of the newly created Eclipse artifact.  It is a great tutorial for how these things are connected and then deployed.

This article explains how to create an extension for IBM® Lotus Notes® 8.0 and later that allows you to open a preconfigured URL (for example, Lotus Notes Multimedia Library) in a newly opened browser window by selecting a menu entry in the Help menu.