 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: multiple dates using lotus date field</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/multiple-dates-using-lotus-date-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/multiple-dates-using-lotus-date-field/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 23:07:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: sliktool</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/multiple-dates-using-lotus-date-field/#comment-66796</link>
		<dc:creator>sliktool</dc:creator>
		<pubDate>Wed, 12 Aug 2009 01:39:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-66796</guid>
		<description><![CDATA[Though not necessarily a great solution, this will work in theory.

Set up a database that is just a calendar and place a single entry on every day in the calendar.  Open the calendar view thru a PickListCollection from UIWorkspace.  From the picklist select the item for each day you want, and from the collection get the startdatetime field and do what you want with it.  Does this make sense?

Don&#039;t make the entries in the calendar repeating items because they are technically 1 document.  Write an agent to add an appointment to every day for 10 years, or whatever you think you need.

I tested it in my Mail Database and it does work.  here is the code to get you started.

	Dim ws As New NotesUIWorkspace
	Dim session As New NotesSession
	Dim db As NotesDatabase
	Dim dc As NotesDocumentCollection
	Dim doc as NotesDocument
        Dim x as Long

	Set db = session.currentdatabase
	
	Set dc = ws.PickListCollection(PICKLIST_CUSTOM, True, db.server, db.FilePath, &quot;Calendar&quot;, &quot;Test&quot;, &quot;Testing Pick&quot;)
	
	If dc.count &gt; 0 Then
		for x = 1 to dc.count
                    Set doc = dc.getnthdocument(x)
                    Msgbox Cstr(doc.startdatetime(0))

                Next
	End If



Mike K.]]></description>
		<content:encoded><![CDATA[<p>Though not necessarily a great solution, this will work in theory.</p>
<p>Set up a database that is just a calendar and place a single entry on every day in the calendar.  Open the calendar view thru a PickListCollection from UIWorkspace.  From the picklist select the item for each day you want, and from the collection get the startdatetime field and do what you want with it.  Does this make sense?</p>
<p>Don&#8217;t make the entries in the calendar repeating items because they are technically 1 document.  Write an agent to add an appointment to every day for 10 years, or whatever you think you need.</p>
<p>I tested it in my Mail Database and it does work.  here is the code to get you started.</p>
<p>	Dim ws As New NotesUIWorkspace<br />
	Dim session As New NotesSession<br />
	Dim db As NotesDatabase<br />
	Dim dc As NotesDocumentCollection<br />
	Dim doc as NotesDocument<br />
        Dim x as Long</p>
<p>	Set db = session.currentdatabase</p>
<p>	Set dc = ws.PickListCollection(PICKLIST_CUSTOM, True, db.server, db.FilePath, &#8220;Calendar&#8221;, &#8220;Test&#8221;, &#8220;Testing Pick&#8221;)</p>
<p>	If dc.count &gt; 0 Then<br />
		for x = 1 to dc.count<br />
                    Set doc = dc.getnthdocument(x)<br />
                    Msgbox Cstr(doc.startdatetime(0))</p>
<p>                Next<br />
	End If</p>
<p>Mike K.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.037 seconds using memcached
Object Caching 267/273 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 23:41:00 -->