The composite application that one is most likely to use is the Notes Mail and Calendar. So it makes sense that this is a fertile ground for adding things to.
This recipe shows you how to add to your main mail view a Sametime business card that displays the author of the current e-mail. Naturally it only works if the author of the e-mail is on your Sametime network!
What you need
Your mail template needs to have been upgraded to the shipping mail template with Notes 8. If you have not already done this, you can right click the mail icon on your workspace and select Application->Replace Design. From the list of templates select Mail (8). It may take some time. When it's done you will have the new Notes 8 Composite Application Mail template.
Some companies may use different identifiers for their Notes mail addresses and Sametime IDs. Often the Sametime ID is the Internet address for the sender. We will need to know which field in the mail document is set to a value that can be used for the Sametime ID (1). If your IDs are the same, then you can probably use the From field. In other cases the INetFrom field my be better. If you select a typical document, select Right Click and Properties, you can use the second tab of the infobox to scroll through all the fields in the document and see which one contains something that looks like what your company uses for a Sametime ID.
While in your mail view do Actions->Edit Application to open the CAE on your mail file. Make sure you are on the first page.
1. Drop a Sametime Business Card component Notes Link on top of the Notes Mail Mini View so that they form a tabbed folder together.
2. Drop a Notes URL Processor component Notes Link in the same column as the Notes Mail Mini View at the bottom.
Adjust to make this the smallest size possible.
1. Notes Mail View.Notes url changed -> NotesURL.NotesURL
2. NotesURL.Field 1 -> Business Card.name
Advanced Component Properties
(Note: field names are case sensitive.)
1. NotesURL.field1 = <the field containing someone's Sametime ID (1)> (You can use INetFrom if you are IBM internal.)
How it Works
When a document is selected in the Notes Mail View component it's Notes URL is broadcast. This is received by the Notes URL Processor. This component will apply any @formulas in it's Advanced Component Properties and broadcast the results in the corresponding field property. In this case, we do a simple field lookup for the field we determined above (1). This is then passed onto the Sametime Business Card which does the lookup and displays the data.
You can use the pattern of mapping the Notes URL to the Notes URL Processor component to extract any field that you might want for passing onto a third productivity component. It helps where the original data element you want has not been broadcast by the original component but is there in a Notes field.