Widget and Date Recognizer
It is possible to build a Notes Widget
that creates a Lotus Notes Meeting based on a Date. There were bugs that
were fixed in 9.01 FP5 that are needed to make this work.
They will need to do a couple things:
1. Build a recognizer for the date format
they want to recognize (the date format needs to be one that can be accepted
by the date fields in a meeting).
2. Build a Notes Widget that opens a
new meeting and sets the dates as desired.
I have built one form of such a widget:
(create an xml file from this and then drop it into the Widgets sidebar
panel)
xml:
<?xml version="1.0" encoding="UTF-8"?>
<webcontextConfiguration version="1.1">
<palleteItem contributeTabOnStartup="false"
contributeToSideshelfOnStartup="false" hideThumbnail="false"
id="1809376523" imageUrl="" providerId="com.ibm.notes.toolbox.provider.NotesFormPalleteProvider"
singletonSidebar="false" title="New Meeting" url="Notes:///0000000000000E00/Appointment?OpenForm"
viewImageUrl="">
<preferences>
<preference name="EndDate">
<value>01/28/2014</value>
<displayName>EndDate</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="EndDateTime">
<value>01/28/2014 11:15:00 AM</value>
<displayName>EndDateTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="EndTime">
<value>11:15:00 AM</value>
<displayName>EndTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="StartDate">
<value>01/28/2014</value>
<displayName>StartDate</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="STARTDATETIME">
<value>01/28/2014 10:15:00 AM</value>
<displayName>STARTDATETIME</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="StartTime">
<value>10:15:00 AM</value>
<displayName>StartTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
</preferences>
<data DB_PATH="" REPLICA_ID="0000000000000E00"
TYPE="FORM" database="" doc_url="Notes:///0000000000000E00/Appointment?OpenForm"
form_name="Appointment" server=""/>
</palleteItem>
<fragmentInstance id="com.ibm.rcp.toolbox.config.1809376523.837394727"
palleteItemId="1809376523" title="New Meeting">
<contextData>
<actionType>204</actionType>
<contentTypeId>DCCT.DateandTime.1170031047</contentTypeId>
<wire contentTypePropertyId="contents"
parameterID="StartDate"/>
<wire contentTypePropertyId="contents"
parameterID="EndDateTime"/>
<wire contentTypePropertyId="contents"
parameterID="EndTime"/>
<wire contentTypePropertyId="contents"
parameterID="EndDate"/>
<wire contentTypePropertyId="contents"
parameterID="STARTDATETIME"/>
<wire contentTypePropertyId="contents"
parameterID="StartTime"/>
</contextData>
<preferences>
<preference name="EndDate">
<value>01/28/2014</value>
<displayName>EndDate</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="EndDateTime">
<value>01/28/2014 11:15:00 AM</value>
<displayName>EndDateTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="EndTime">
<value>11:15:00 AM</value>
<displayName>EndTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="StartDate">
<value>01/28/2014</value>
<displayName>StartDate</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="STARTDATETIME">
<value>01/28/2014 10:15:00 AM</value>
<displayName>STARTDATETIME</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
<preference name="StartTime">
<value>10:15:00 AM</value>
<displayName>StartTime</displayName>
<enumValues/>
<enumDisplayValues/>
<datatype>Date Time</datatype>
<isEnum>false</isEnum>
<isRequired>false</isRequired>
<isHidden>false</isHidden>
</preference>
</preferences>
</fragmentInstance>
<dynamicExtension extensionPoint="com.ibm.rcp.content.contentTypes">
<contribution contributorId="com.ibm.rcp.toolbox.config">
<extension id="DCCT.DateandTime.1170031047"
point="com.ibm.rcp.content.contentTypes">
<contentSet>
<type category="Recognized
Content" id="DCCT.DateandTime.1170031047" name="Date
and Time">
<property description="Entire
Contents" id="contents"/>
</type>
</contentSet>
</extension>
</contribution>
</dynamicExtension>
<dynamicExtension extensionPoint="com.ibm.rcp.annotation.regex.regexTypes">
<contribution contributorId="com.ibm.rcp.toolbox.config">
<extension id="DCR.DateandTime.566678936"
point="com.ibm.rcp.annotation.regex.regexTypes">
<regexTypes contentTypeId="DCCT.DateandTime.1170031047"
id="DCR.DateandTime.566678936" match="([0-9]+[-/][0-9]+[-/][0-9]+)\s([0-9]+[:.|/][0-9]+[
]*)([AP]M)*" name="Date and Time">
<group contentTypePropertyId="contents"
number="0"/>
</regexTypes>
</extension>
</contribution>
</dynamicExtension>
<dynamicExtension extensionPoint="org.eclipse.ui.popupMenus">
<contribution contributorId="com.ibm.rcp.toolbox">
<extension id="com.ibm.rcp.toolbox.config.1809376523.837394727"
point="org.eclipse.ui.popupMenus">
<objectContribution id="com.ibm.rcp.toolbox.config.1809376523.837394727"
objectClass="com.ibm.rcp.content.IDocumentContent">
<visibility>
<and>
<objectState name="content.type"
value="DCCT.DateandTime.1170031047"/>
<objectState name="contents"
value=""/>
<objectState name="contents"
value=""/>
<objectState name="contents"
value=""/>
<objectState name="contents"
value=""/>
<objectState name="contents"
value=""/>
<objectState name="contents"
value=""/>
</and>
</visibility>
<action class="com.ibm.rcp.toolbox.GenericWebAction"
enablesfor="*" id="com.ibm.rcp.toolbox.config.1809376523.837394727"
label="New Meeting"/> </objectContribution>
</extension>
</contribution>
</dynamicExtension>
</webcontextConfiguration>
Notice in this screen shot below that
the date in dash underlined in blue:
If you hover over the date, you can
open the Live Text drop down menu:
Choosing the New Meeting action will
open this:
Related Widgets Documentation:
http://www.ibm.com/support/knowledgecenter/SSKTWP_9.0.1/com.ibm.notes901.help.doc/wid_wid_top.html
http://www.ibm.com/support/knowledgecenter/SSKTWP_9.0.1/com.ibm.notes901.help.doc/wid_create_widget_notes_t.html
http://www.ibm.com/support/knowledgecenter/SSKTWP_9.0.1/com.ibm.notes901.help.doc/wid_create_recognizer_t.html