Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Composite Applications wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.2
  • 6.2.1
  • 8.0.1
  • 8.5
  • 8.5+
  • 8.5.1
  • advanced features
  • advantages
  • API
  • app dev
  • assembling
  • basics
  • benefits
  • Browser
  • CAE
  • catalog
  • changing page properties
  • changing value to another type of value
  • code snippet
  • component library
  • component properties
  • components
  • Composite Application Editor
  • Composite Applications
  • container components
  • containers
  • custom actions
  • debugging
  • demos
  • deploying
  • designing
  • developing
  • Eclipse
  • Eclipse components
  • editing properties
  • Editor
  • education
  • enablement
  • Expeditor
  • extending
  • extensions
  • FAQ
  • feature rules
  • framework
  • getting started
  • Help
  • HOD
  • host on demand
  • how to
  • Java
  • lead manager
  • linking
  • live text
  • match rules
  • new users
  • Notes
  • Notes components
  • nsf
  • NSF components
  • overview
  • page navigation
  • page properties
  • Palette
  • PBE
  • PIM
  • plugins
  • Portal
  • preference
  • product documentation
  • programming
  • properties
  • property broker
  • property broker editor
  • Property Broker Monitor tool
  • provisioning
  • resources
  • roadmap
  • samples
  • setting component properties
  • Sidebar
  • sideshelf
  • Symphony
  • Symphony view component
  • technote
  • testing
  • toolkit
  • TopologyHandler
  • troubleshooting
  • tutorial
  • update site
  • updating
  • upgrading
  • video
  • view
  • Web
  • web services
  • white lists
  • widgets
  • Wiring
  • WSDL
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Capturing Components > Introduction to the Notes Document Container
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Introduction to the Notes Document Container 

expanded Abstract
collapsed Abstract
No abstract provided.
ShowTable of Contents
HideTable of Contents
    • 0.1 Supported landmark identifiers
    • 0.2 Supported actions
    • 0.3 Supported field expressions
    • 0.4 Supported events
  • 1 Understanding the Component Settings panel
  • 2 Configuring the container using the toolbar
  • 3 The quick configuration tool
  • 4 Scenarios
    • 4.1 Wiring a Notes View container to a Notes Document container
    • 4.2 Creating actions
    • 4.3 Adding a second landmark
The Notes Document container let you quickly add a Notes document such as a memo form or an appointment form to your composite application, and wire to elements of the Notes document. The container allows you to completely define the inputs and outputs directly within the Composite Application Editor - you do not have to create WSDL or use Designer to define your component. This tutorial will introduce the various concepts related to the Notes Document container and will describe how to use it in a composite application. Before getting started the following sections will define the various container concepts in the context of the Notes Document container, for a more general description of these concepts please refer to the InfoCenter

Supported landmark identifiers


The landmark identifier is used to generate a string that represents the current state of the Notes Document container. This string is compared to the landmark expression associated with the different landmarks in the container configuration. The following landmark identifiers are supported:
  • $FORM – the current document’s form. This is the default landmark identifier.
  • $URL – the current document’s URL (Notes://…)
  • Any of the field expressions described below.

Supported actions

  • Publish - this action is used to publish the value of a field to property broker.
  • Receive - this action is used to set the value of a field to the value received from property broker. This action will work only if the document is being edited.

Supported field expressions

  • ‘field:’ – this references the field in the Notes document.
  • ‘formula:’ – this field expression can only be used with the Publish action. The result of executing the will be published. Note that the formula is evaluated against the backend document. Refer to the InfoCenter for a list of available formulae.

Supported events

  • contentComplete - this event is fired when the current document changes.
  • dataChange – this event is fired when a field in the document is changed or if a property managed by the broker is changed. Publish actions defined in this event will be executed only for changes made to the associated field in the user interface. The Publish action will not be executed if the field is changed from code or script.

Understanding the Component Settings panel


The Component Settings panel can be opened by right-clicking the component in the Page Navigator and selecting 'Edit Component Properties'.


  • Notes URL - this preference specifies the URL of the document to be loaded initially. The 'Browse' button can be clicked to launch a Notes database picker, this will return the URL for the database selected; the document section of the URL must be manually appended to the database URL.
  • Close policy - this preference controls the way the view closes itself if the 'Esc' key is pressed or if the form closes itself (for example clicking 'Send' in the Memo form). The supported values are:
    • ‘Close View’ - just closes the view. It can be reopened from the View menu -
    • ‘Close Perspective’ - closes the entire perspective/page.
    • ‘Reset View’ – closes and reopens the view. This is the default behavior.
    • Remember last URL - this preference determines which URL to use when the container is reset or reopened, the URL of the last document displayed or the initial URL.

Configuring the container using the toolbar


When the Notes Document container is added to an application in the Composite Application Editor (CAE) a toolbar is displayed that simplifies tasks like adding an action to the current landmark, changing the current document, adding multiple Publish/Receive actions.


The quick configuration tool


The quick configuration tool allows the user to populate the standard events with Publish and/or Receive actions. It displays a selectable list of fields available in the current document, A property is automatically generated when a field is selected. The user can edit the generated property name or select one from the list of available properties. Note that the tool does not reflect the existing configuration for the current landmark and that using the tool will erase that configuration.

Scenarios



Scenario 1

Wiring a Notes View container to a Notes Document container


  • Step 1: Create a new composite application

  • Open the 'File' menu and select 'Application' -> 'New' to open the new application dialog. Give the application a 'Title' and select 'Blank Composite Application' as the 'Template'. Click the 'OK' button and the application will be created and opened in the Notes client.
  • Step 2: Add the components

  • Open the 'Actions' menu and select 'Edit Application'. The application will be opened in the Composite Application Editor (CAE). Drag a Notes View (Contact/Calendar/Mail) and drop it on the canvas. Then drag a Notes Document Container and drop it on the canvas. For this example, add a Notes Calendar View and hide the preview.
  • Step 3: Wire the components

  • Right click the view component in the Page Navigator on the left and select 'Wiring' to launch the wiring perspective. Create a wire from the 'Notes url changed' property to the 'Set Notes Document URL' action. Click the 'Apply' button and switch back to the 'Blank Page' tab. The document selected in the Notes view component will be displayed in the Notes Document container.

Scenario 2

Creating actions


  • Step 1: Create a new composite application

  • Repeat the steps described in Scenario 1.
  • Step 2: Create actions using the quick configuration tool.

  • The quick configuration tool can be used to create actions for multiple fields. Launch the quick configuration tool from the toolbar and select the actions and fields. The property name is automatically generated but can be edited. Click the Apply button, and then click the Refresh button on the toolbar to reload the application and activate the actions.
  • Step 3: Create actions using the toolbar.

  • The toolbar can be used to easily create actions for a single field. Clicking on a field in the document will automatically populate the toolbar's field textbox. In some cases the contents of the field textbox change the moment the mouse button is released, in such cases the field should be selected using a drag gesture. Once the field has been selected, choose the appropriate events, action and property. Click the Add Action button, and then click the Refresh button to reload the application and activate the actions.

  • Step 4: Create an action to publish the result of a formula.

  • Use the toolbar to add a Publish action. Use 'Body' for the property name and 'formula:@Count(RequiredAttendees)+@Count(OptionalAttendees)' for the field expression. This will return the total number of participants.
  • Step 5: Review the landmark configuration.

  • Right click the Notes Document container component in the Page Navigator on the left and select 'Edit Component Properties', then navigate to the 'Landmarks' tab.
  • Step 6: Test the actions against a second Notes Document container.

  • Add another Notes Document container to the application, by default it should show a blank memo. The actions will be tested against this Notes document. Use the quick configuration tool to add 'Receive on Data Change' actions for the 'Body', 'EnterCopyTo', 'EnterSendTo' and 'Subject' fields. Right click the first Notes Document container component in the Page Navigator on the left and select 'Wiring' to launch the wiring perspective. Create the following wires from the first Notes Document container to the second Notes Document container - 'Body' to 'Set Body', 'CC' to 'Set EnterCopyTo', 'To' to 'SetEnterSendTo', 'Topic' to 'SetSubject'. Finally click Apply.

    Select a document in the Calendar view. It should display in the first Notes Document container and the memo in the second Notes Document container should be populated with information from the document in the first container.

Scenario 3

Adding a second landmark


  • Step 1: Create a new composite application

  • Repeat the steps described in Scenarios 1 and 2.
  • Step 2: Add a second view component.

  • For this example, add a Notes Contacts View to the application and wire it to the first Notes Document container (see Step 3 of Scenario 1).
  • Step 3: Add the second landmark.

  • The second landmark can either be added manually from the 'Landmarks' tab in the 'Component Properties' dialog or using the steps described in Scenario 2. Publish 'field:InternetAddress' to the 'To' property and 'formula:"Hi "+FirstName+","'.
  • Step 4: Review the landmark configuration.

  • Right click the Notes Document container component in the Page Navigator on the left and select 'Edit Component Properties', then navigate to the 'Landmarks' tab.
  • Step 5: Test the application

  • Clicking on documents in the different views should change the document displayed in the first Notes Document container which in turn updates the Memo in the second Notes Document container.

expanded Article information
collapsed Article information
Category:
Capturing Components
Tags:
document, containers, tutorial

This Version: Version 11 October 29, 2009 3:35:09 PM by Robert F Harwood  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (11)
collapsed Versions (11)
Version Comparison     
Version Date Changed by               Summary of changes
This version (11) Oct 29, 2009 3:35:09 PM Robert F Harwood  
10 Oct 29, 2009 3:34:09 PM Robert F Harwood  
9 Oct 11, 2009 6:45:24 PM Deanna Drschiwiski  
8 Sep 15, 2009 1:53:25 PM Ashok - Mammen  
7 Sep 15, 2009 9:19:28 AM Bob Balfe  
6 Sep 15, 2009 9:17:48 AM Bob Balfe  
5 Sep 15, 2009 9:15:53 AM Bob Balfe  
4 Sep 15, 2009 9:12:42 AM Bob Balfe  
3 Sep 15, 2009 9:07:53 AM Bob Balfe  
2 Sep 15, 2009 9:05:58 AM Bob Balfe  
1 Sep 15, 2009 9:01:53 AM Bob Balfe  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use