Kannepalli Sreekanth from the Notes composite application development team has implemented with some other developers a new feature for Notes 8.0.1. This allows opening Notes documents in composite application pages together with other components. In 8.0.1 you could put forms on pages, but there was no way to open multiple documents at the same time. The text below is from Sreekanth.
In Notes 8, when you double click on a Notes Document it opens up in a new page which just the document opened in it. With this new feature in 8.0.1 you will be able to open Notes Documents in a page within a Composite Application. What does it mean to the end user ? The new page can again be a composite page which has wires to other components. Opening a document can lead to a few actions being fired which can show composite information on the page which was unavailable earlier.
How to use the feature ?
Let us use the Sales Lead Application for demonstrating this feature.
Create a new Composite Application and place the Sales Lead Core->Company View
The main idea behind this feature is that each Document is associated with a Form. A new page is created in CA associating it with a single form. When a document associated with such a form is opened the respective Page will be opened.
Note the form name associated with a Document from the Infobox. In the below e.g. The form name is equivalent to “CompanyForm”. Note: Form alias is used always.
Create a new page in the CA with any name. In the Page Properties->Advanced tab set a new property by the name “com.ibm.rcp.alias” and value equal to the form alias name. This property will be used to identify a page associated with a form. You may hide the page in the navigator also.
In the new page it is now important that we create a Notes Component that will act as a Placeholder component. This component will serve as a location markup as to where a document should be opened. Only one placeholder component can exist in a page. A Component is designated as a placeholder component using the property com.ibm.notes.isDocumentPlaceholder=true
NOTE: It is necessary to point the URL of the Notes Component to the Form from the database.
Note the new property com.ibm.notes.isDocumentPlaceholder
Add two other components and wire them as needed. This will demonstrate the composite nature of the page. For demonstration i have added the Closed and Pending Leads views and wired them as shown below. Also my Document's form is written to do a Publish of CompanyName property in the PostOpen event.
Now you are ready to try it out.
Open the CA and navigate to the first page. Double-Click any document to open the document within the Placeholder component in a new page along with other Components.
Documents belonging to a particular form always open in the same page bringing uniformity in the CA
Different target pages can be created for Documents using different forms
Document is still within the context of the Composite Application