<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel><title>PhilRandolph.com | Comments</title><description>Blogging about Notes/Domino Development, Detroit Red Wings Hockey and Family</description><link>http://philrandolph.com/philrandolph/philrandolph.nsf/</link><language>en-us</language><lastBuildDate>Mon, 2 Nov 2009 09:54:22 AM -0500</lastBuildDate>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/philrandolphcomments" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
<title>Red Wings November Schedule Desktop Wallpaper</title>
<pubDate>Mon, 2 Nov 2009 09:54:22 AM -0500</pubDate>
<dc:creator>Ibby Basaran</dc:creator>
<dc:subject>Red Wings November Schedule Desktop Wallpaper</dc:subject>
<description><![CDATA[Please ... take it easy on us on this Saturday night! :-)The Maple Leafs are young, stupid and making way to many repeative goofball mistakes. Oh, that and our goalies can't stop a beachball.<br /><br />But on Saturday the 21st ... kick ass! I can't STAND that dreaded "CH"<br /><br />( Which stands for "Centre Hice!" )]]></description>
<content:encoded><![CDATA[Please ... take it easy on us on this Saturday night! :-)The Maple Leafs are young, stupid and making way to many repeative goofball mistakes. Oh, that and our goalies can't stop a beachball.<br /><br />But on Saturday the 21st ... kick ass! I can't STAND that dreaded "CH"<br /><br />( Which stands for "Centre Hice!" )<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/ZI8BpNg-Pr4" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/ZI8BpNg-Pr4/11022009091516AMHOSKW4.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/11022009091516AMHOSKW4.htm?opendocument&amp;comments#11022009095422AMHOSLNJ.htm</feedburner:origLink></item>
<item>
<title>Changing things up a bit, for the better</title>
<pubDate>Fri, 30 Oct 2009 12:46:15 PM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>Changing things up a bit, for the better</dc:subject>
<description><![CDATA[Thanks for your support Chris. Course I just thought about the fact that I started this new committment right before a weekend...that might not have been the best choice in the world! Let's see if I can get past the first test, the first weekend!]]></description>
<content:encoded><![CDATA[Thanks for your support Chris. Course I just thought about the fact that I started this new committment right before a weekend...that might not have been the best choice in the world! Let's see if I can get past the first test, the first weekend!<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/idX3K_ShcTQ" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/idX3K_ShcTQ/10302009113536AMHOSMGB.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10302009113536AMHOSMGB.htm?opendocument&amp;comments#10302009124615PMHOSNUG.htm</feedburner:origLink></item>
<item>
<title>Changing things up a bit, for the better</title>
<pubDate>Fri, 30 Oct 2009 12:20:02 PM -0500</pubDate>
<dc:creator>Chris Blatnick</dc:creator>
<dc:subject>Changing things up a bit, for the better</dc:subject>
<description><![CDATA[Congratulations...way to commit! Good luck!]]></description>
<content:encoded><![CDATA[Congratulations...way to commit! Good luck!<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/K-jlRTOwXnY" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/K-jlRTOwXnY/10302009113536AMHOSMGB.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10302009113536AMHOSMGB.htm?opendocument&amp;comments#10302009122002PMHOSNC3.htm</feedburner:origLink></item>
<item>
<title>Stanley Cup Playoffs Round 1 Bracket Wallpaper</title>
<pubDate>Tue, 27 Oct 2009 05:10:00 AM -0500</pubDate>
<dc:creator>hortert</dc:creator>
<dc:subject>Stanley Cup Playoffs Round 1 Bracket Wallpaper</dc:subject>
<description><![CDATA[Thanks for these wallpapers!]]></description>
<content:encoded><![CDATA[Thanks for these wallpapers!<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/n2IUYhd4nUI" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/n2IUYhd4nUI/04152009070224AMHOSG5K.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/04152009070224AMHOSG5K.htm?opendocument&amp;comments#27.10.2009051000HOSDXB.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 2 Take 5 Report</title>
<pubDate>Tue, 20 Oct 2009 04:45:58 AM -0500</pubDate>
<dc:creator>ChrisC</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 2 Take 5 Report</dc:subject>
<description><![CDATA[That's an interesting list - Jethro Tull mixed in there - like it!! Mine tends to be more Green Day (going to see tonight in belfast), Foo Fighters, My Chemical Romance - With a can of energy drink / caffeine !! Going to add some acdc methinks.]]></description>
<content:encoded><![CDATA[That's an interesting list - Jethro Tull mixed in there - like it!! Mine tends to be more Green Day (going to see tonight in belfast), Foo Fighters, My Chemical Romance - With a can of energy drink / caffeine !! Going to add some acdc methinks.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/NyWkeSeImOo" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/NyWkeSeImOo/10192009103420PMHOS67Z.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10192009103420PMHOS67Z.htm?opendocument&amp;comments#20102009044558HOSDGA.htm</feedburner:origLink></item>
<item>
<title>Lasik Surgery</title>
<pubDate>Sat, 17 Oct 2009 05:58:11 AM -0500</pubDate>
<dc:creator>jack</dc:creator>
<dc:subject>Lasik Surgery</dc:subject>
<description><![CDATA[best of luck<br /><br />-----------<br /><br />jack<br /><br />&lt;a href="{ <a href="http://www.columbuslaser.com/laser-eye-surgery-upper-arlington-ohio.shtml"&gt; " target="_blank" title="Link: www.columbuslaser.com/laser-eye-surgery-upper-arlington-ohio.shtml"&gt; ">Link</a> } <br /><br />Cataract surgery Upper Arlington&lt;/a&gt;]]></description>
<content:encoded><![CDATA[best of luck<br /><br />-----------<br /><br />jack<br /><br />&lt;a href="{ <a href="http://www.columbuslaser.com/laser-eye-surgery-upper-arlington-ohio.shtml"&gt; " target="_blank" title="Link: www.columbuslaser.com/laser-eye-surgery-upper-arlington-ohio.shtml"&gt; ">Link</a> } <br /><br />Cataract surgery Upper Arlington&lt;/a&gt;<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/UpKu733xSM8" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/UpKu733xSM8/06122008073203AMHOSGQ7.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/06122008073203AMHOSGQ7.htm?opendocument&amp;comments#10172009055811AMHOSEVE.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Thu, 15 Oct 2009 11:06:40 AM -0500</pubDate>
<dc:creator>Rob Porter</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[Glad to help :)<br /><br />Something to watch out for is the second line of the DXL that begins:<br /><br />&lt;database xmlns=<br /><br />Make sure the version= part is the lowest version of the Notes client anyone in your organisation will be using otherwise they will get an error. As you can see in my example it is 6.0 even though I personally use a later version of Notes.]]></description>
<content:encoded><![CDATA[Glad to help :)<br /><br />Something to watch out for is the second line of the DXL that begins:<br /><br />&lt;database xmlns=<br /><br />Make sure the version= part is the lowest version of the Notes client anyone in your organisation will be using otherwise they will get an error. As you can see in my example it is 6.0 even though I personally use a later version of Notes.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/lNeyXQOeJdU" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/lNeyXQOeJdU/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10152009110640AMHOSLW8.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Thu, 15 Oct 2009 10:41:12 AM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[Wow, Rob!<br /><br />Thanks so much for that code! <br /><br />I'm sure I'll be able to use it to work it into my situation and be better able to deliver what the customer is wanting, plus have it in my back pocket for other requests that come down the pike and need more rich text manipulation.]]></description>
<content:encoded><![CDATA[Wow, Rob!<br /><br />Thanks so much for that code! <br /><br />I'm sure I'll be able to use it to work it into my situation and be better able to deliver what the customer is wanting, plus have it in my back pocket for other requests that come down the pike and need more rich text manipulation.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/3-mJsppbTM4" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/3-mJsppbTM4/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10152009104112AMHOSLEB.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Thu, 15 Oct 2009 04:17:15 AM -0500</pubDate>
<dc:creator>Rob Porter</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[Like @Carl I also tend to use DXL for this sort of thing.<br /><br />Here's an example of a sub from an agent I wrote that sends an email with a table with cells with background colours. Although I haven't done it in this example, it would be fairly simple to manipulate the cells' "bgcolor" attribute.<br /><br />Sub emailContractsDept( docProf As NotesDocument )<br /><br />Dim session As New NotesSession<br /><br />Dim i As Integer<br /><br />Dim doc As NotesDocument<br /><br />Dim docMail As NotesDocument<br /><br />Dim strSendTo As String<br /><br />Dim strContractTitle As String<br /><br />Dim strNotesDomain As String<br /><br />Dim strExpDate As String<br /><br />Dim stream As NotesStream<br /><br />Dim dmp As NotesDXLImporter<br /><br />On Error 4522 Goto DXLerror<br /><br />On Error 4294 Goto emailSendError<br /><br />If docProf.DoExpiryNotification(0) &lt;&gt; "Yes" Then<br /><br />Call agentLog.LogAction( "* contract expiry notification email has been turned off in the configuration *")<br /><br />Exit Sub<br /><br />End If<br /><br />strNotesDomain = docProf.NotesDomain(0)<br /><br />If strNotesDomain &lt;&gt; "" Then<br /><br />If Left$( strNotesDomain, 1) &lt;&gt; "@" Then<br /><br />strNotesDomain = "@" & strNotesDomain				<br /><br />End If<br /><br />End If<br /><br />Call agentLog.LogAction( "start of contract expiry emails")<br /><br />strSendTo = docProf.ContractsDeptEmailRecipient(0)<br /><br />If strSendTo = "" Then<br /><br />Call agentLog.LogWarning( "Contracts department Email recipient is blank in the configuration. Unable to send email." )<br /><br />Exit Sub<br /><br />End If<br /><br />Set stream = session.CreateStream<br /><br />stream.WriteText {&lt;?xml version='1.0' encoding='utf-8' ?&gt;<br /><br />&lt;database xmlns='{ <a href="http://www.lotus.com/dxl' " target="_blank" title="Link: www.lotus.com/dxl' ">Link</a> } version='6.0'&gt; <br /><br />&lt;document form='Memo'&gt; <br /><br />&lt;item name='SendTo'&gt;&lt;text&gt;} & strSendTo & {&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Principal'&gt;&lt;text&gt;noreply@reliancecare.com} & strNotesDomain & {&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Subject'&gt;&lt;text&gt;Contract expiry notification&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Body'&gt;<br /><br />&lt;richtext&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;This email has been generated automatically. Please do not reply to it.&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;font size='12pt' style='bold'/&gt;Contracts that have just expired:&lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />If dcExpired.Count &gt; 0 Then<br /><br />Set doc = dcExpired.GetFirstDocument<br /><br />Do Until doc Is Nothing<br /><br />strContractTitle = replaceSpecialCharacters( doc.Contract_title(0))<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;urllink showborder='false' href='} & doc.NotesURL & {'&gt;<br /><br />&lt;run&gt;&lt;font color='system'/&gt;} & strContractTitle & {&lt;/run&gt;<br /><br />&lt;/urllink&gt;<br /><br />&lt;/par&gt;}<br /><br />Set doc = dcExpired.GetNextDocument( doc )<br /><br />Loop<br /><br />Else<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;- none found - &lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />End If<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;font size='12pt' style='bold'/&gt;Contracts that will expire within the next } & docProf.ContractNotificationPeriod(0) & { months:&lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />' loop through the "about to expire" document collection<br /><br />If dcAboutToExpire.Count &gt; 0 Then<br /><br />Set doc = dcAboutToExpire.GetFirstDocument<br /><br />stream.WriteText{&lt;table cellbordercolor='#a2c8c8' widthtype='fixedleft' rowspacing='0.0396in'<br /><br />columnspacing='0.0396in' refwidth='4.4889in'&gt;&lt;tablecolumn width='3.1493in'/&gt;&lt;tablecolumn<br /><br />width='1.1813in'/&gt;<br /><br />&lt;tablerow&gt;<br /><br />&lt;tablecell bgcolor='#a2c8c8'&gt;<br /><br />&lt;pardef id='2' keepwithnext='true' keeptogether='true'/&gt;<br /><br />&lt;par def='2'&gt;&lt;run&gt;&lt;font size='9pt' style='bold'/&gt;Client&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;<br /><br />&lt;tablecell bgcolor='#a2c8c8'&gt;<br /><br />&lt;pardef id='3' keepwithnext='true' keeptogether='true'/&gt;<br /><br />&lt;par def='3'&gt;&lt;run&gt;&lt;font size='9pt' style='bold'/&gt;Expire Date&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;&lt;/tablerow&gt;<br /><br />}<br /><br />Do Until doc Is Nothing<br /><br />strContractTitle = replaceSpecialCharacters( doc.Contract_title(0))<br /><br />strExpDate = Format$(doc.Contract_exp_date(0), "Short Date")<br /><br />stream.WriteText{ &lt;tablerow&gt;<br /><br />&lt;tablecell&gt;<br /><br />&lt;par def='2'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;<br /><br />&lt;urllink showborder='false' href='} & doc.NotesURL & {'&gt;<br /><br />&lt;run&gt;&lt;font color='system'/&gt;} & strContractTitle & {&lt;/run&gt;<br /><br />&lt;/urllink&gt;&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;<br /><br />&lt;tablecell&gt;<br /><br />&lt;par def='3'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;} & strExpDate & {&lt;/run&gt;&lt;/par&gt;<br /><br />&lt;/tablecell&gt;<br /><br />&lt;/tablerow&gt;<br /><br />}<br /><br />Set doc = dcAboutToExpire.GetNextDocument( doc )<br /><br />Loop<br /><br />stream.WriteText{&lt;/table&gt;}<br /><br />Else<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;- none found - &lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />End If<br /><br />stream.WriteText{ &lt;par def='1'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;&lt;/run&gt;&lt;horizrule height='0.0194in' width='100%'<br /><br />use3dshading='false' color='#c0e1ff' gradientcolor='white'/&gt;&lt;run&gt;&lt;font size='8pt'<br /><br />color='silver'/&gt;This email was sent from the CarePro Client database&lt;/run&gt;&lt;/par&gt;&lt;/richtext&gt;<br /><br />&lt;/item&gt;<br /><br />&lt;/document&gt;<br /><br />&lt;/database&gt;}<br /><br />Set dmp = session.CreateDXLIMporter(stream, dbCurrent)<br /><br />dmp.Process<br /><br />Set docMail = dbCurrent.GetDocumentByID( dmp.GetFirstImportedNoteId )<br /><br />Call docMail.Send( False )<br /><br />Call agentLog.LogAction( "Contract Expiry Notification email sent to " & strSendTo)<br /><br />Delete stream<br /><br />' delete the contents of the "blue" and "red" collections<br /><br />Delete dcExpired<br /><br />Delete dcAboutToExpire<br /><br />Call agentLog.LogAction( "end of contract expiry emails")<br /><br />Exit Sub<br /><br />DXLerror:<br /><br />Call agentlog.LogWarning( "DXL error in emailBranches sub: " & doc.forename(0) & " " & doc.surname(0) & " - docID=" & Cstr( doc.UniversalID ) )<br /><br />Resume Next<br /><br />emailSendError:<br /><br />Call agentlog.LogWarning( "Unable to send email to" & strSendTo & " : " & Error$ )<br /><br />Resume Next<br /><br />End Sub<br /><br />To get an idea of how the DXL should look I first use my Notes client to manually create a sample of how I want the email to look like. When I'm happy with how the sample looks I export the sample document as DXL and open it up in a text editor and copy and paste the DXL code into my agent. I then fiddle around with the DXL and LotusScript to add the variable data into the DXL.<br /><br />Hope that helps :)]]></description>
<content:encoded><![CDATA[Like @Carl I also tend to use DXL for this sort of thing.<br /><br />Here's an example of a sub from an agent I wrote that sends an email with a table with cells with background colours. Although I haven't done it in this example, it would be fairly simple to manipulate the cells' "bgcolor" attribute.<br /><br />Sub emailContractsDept( docProf As NotesDocument )<br /><br />Dim session As New NotesSession<br /><br />Dim i As Integer<br /><br />Dim doc As NotesDocument<br /><br />Dim docMail As NotesDocument<br /><br />Dim strSendTo As String<br /><br />Dim strContractTitle As String<br /><br />Dim strNotesDomain As String<br /><br />Dim strExpDate As String<br /><br />Dim stream As NotesStream<br /><br />Dim dmp As NotesDXLImporter<br /><br />On Error 4522 Goto DXLerror<br /><br />On Error 4294 Goto emailSendError<br /><br />If docProf.DoExpiryNotification(0) &lt;&gt; "Yes" Then<br /><br />Call agentLog.LogAction( "* contract expiry notification email has been turned off in the configuration *")<br /><br />Exit Sub<br /><br />End If<br /><br />strNotesDomain = docProf.NotesDomain(0)<br /><br />If strNotesDomain &lt;&gt; "" Then<br /><br />If Left$( strNotesDomain, 1) &lt;&gt; "@" Then<br /><br />strNotesDomain = "@" & strNotesDomain				<br /><br />End If<br /><br />End If<br /><br />Call agentLog.LogAction( "start of contract expiry emails")<br /><br />strSendTo = docProf.ContractsDeptEmailRecipient(0)<br /><br />If strSendTo = "" Then<br /><br />Call agentLog.LogWarning( "Contracts department Email recipient is blank in the configuration. Unable to send email." )<br /><br />Exit Sub<br /><br />End If<br /><br />Set stream = session.CreateStream<br /><br />stream.WriteText {&lt;?xml version='1.0' encoding='utf-8' ?&gt;<br /><br />&lt;database xmlns='{ <a href="http://www.lotus.com/dxl' " target="_blank" title="Link: www.lotus.com/dxl' ">Link</a> } version='6.0'&gt; <br /><br />&lt;document form='Memo'&gt; <br /><br />&lt;item name='SendTo'&gt;&lt;text&gt;} & strSendTo & {&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Principal'&gt;&lt;text&gt;noreply@reliancecare.com} & strNotesDomain & {&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Subject'&gt;&lt;text&gt;Contract expiry notification&lt;/text&gt;&lt;/item&gt;<br /><br />&lt;item name='Body'&gt;<br /><br />&lt;richtext&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;This email has been generated automatically. Please do not reply to it.&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;font size='12pt' style='bold'/&gt;Contracts that have just expired:&lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />If dcExpired.Count &gt; 0 Then<br /><br />Set doc = dcExpired.GetFirstDocument<br /><br />Do Until doc Is Nothing<br /><br />strContractTitle = replaceSpecialCharacters( doc.Contract_title(0))<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;urllink showborder='false' href='} & doc.NotesURL & {'&gt;<br /><br />&lt;run&gt;&lt;font color='system'/&gt;} & strContractTitle & {&lt;/run&gt;<br /><br />&lt;/urllink&gt;<br /><br />&lt;/par&gt;}<br /><br />Set doc = dcExpired.GetNextDocument( doc )<br /><br />Loop<br /><br />Else<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;- none found - &lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />End If<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;&lt;/run&gt;<br /><br />&lt;/par&gt;<br /><br />&lt;par&gt;<br /><br />&lt;run&gt;&lt;font size='12pt' style='bold'/&gt;Contracts that will expire within the next } & docProf.ContractNotificationPeriod(0) & { months:&lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />' loop through the "about to expire" document collection<br /><br />If dcAboutToExpire.Count &gt; 0 Then<br /><br />Set doc = dcAboutToExpire.GetFirstDocument<br /><br />stream.WriteText{&lt;table cellbordercolor='#a2c8c8' widthtype='fixedleft' rowspacing='0.0396in'<br /><br />columnspacing='0.0396in' refwidth='4.4889in'&gt;&lt;tablecolumn width='3.1493in'/&gt;&lt;tablecolumn<br /><br />width='1.1813in'/&gt;<br /><br />&lt;tablerow&gt;<br /><br />&lt;tablecell bgcolor='#a2c8c8'&gt;<br /><br />&lt;pardef id='2' keepwithnext='true' keeptogether='true'/&gt;<br /><br />&lt;par def='2'&gt;&lt;run&gt;&lt;font size='9pt' style='bold'/&gt;Client&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;<br /><br />&lt;tablecell bgcolor='#a2c8c8'&gt;<br /><br />&lt;pardef id='3' keepwithnext='true' keeptogether='true'/&gt;<br /><br />&lt;par def='3'&gt;&lt;run&gt;&lt;font size='9pt' style='bold'/&gt;Expire Date&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;&lt;/tablerow&gt;<br /><br />}<br /><br />Do Until doc Is Nothing<br /><br />strContractTitle = replaceSpecialCharacters( doc.Contract_title(0))<br /><br />strExpDate = Format$(doc.Contract_exp_date(0), "Short Date")<br /><br />stream.WriteText{ &lt;tablerow&gt;<br /><br />&lt;tablecell&gt;<br /><br />&lt;par def='2'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;<br /><br />&lt;urllink showborder='false' href='} & doc.NotesURL & {'&gt;<br /><br />&lt;run&gt;&lt;font color='system'/&gt;} & strContractTitle & {&lt;/run&gt;<br /><br />&lt;/urllink&gt;&lt;/run&gt;&lt;/par&gt;&lt;/tablecell&gt;<br /><br />&lt;tablecell&gt;<br /><br />&lt;par def='3'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;} & strExpDate & {&lt;/run&gt;&lt;/par&gt;<br /><br />&lt;/tablecell&gt;<br /><br />&lt;/tablerow&gt;<br /><br />}<br /><br />Set doc = dcAboutToExpire.GetNextDocument( doc )<br /><br />Loop<br /><br />stream.WriteText{&lt;/table&gt;}<br /><br />Else<br /><br />stream.WriteText{ &lt;par&gt;<br /><br />&lt;run&gt;- none found - &lt;/run&gt;<br /><br />&lt;/par&gt;}<br /><br />End If<br /><br />stream.WriteText{ &lt;par def='1'&gt;&lt;run&gt;&lt;font size='9pt'/&gt;&lt;/run&gt;&lt;horizrule height='0.0194in' width='100%'<br /><br />use3dshading='false' color='#c0e1ff' gradientcolor='white'/&gt;&lt;run&gt;&lt;font size='8pt'<br /><br />color='silver'/&gt;This email was sent from the CarePro Client database&lt;/run&gt;&lt;/par&gt;&lt;/richtext&gt;<br /><br />&lt;/item&gt;<br /><br />&lt;/document&gt;<br /><br />&lt;/database&gt;}<br /><br />Set dmp = session.CreateDXLIMporter(stream, dbCurrent)<br /><br />dmp.Process<br /><br />Set docMail = dbCurrent.GetDocumentByID( dmp.GetFirstImportedNoteId )<br /><br />Call docMail.Send( False )<br /><br />Call agentLog.LogAction( "Contract Expiry Notification email sent to " & strSendTo)<br /><br />Delete stream<br /><br />' delete the contents of the "blue" and "red" collections<br /><br />Delete dcExpired<br /><br />Delete dcAboutToExpire<br /><br />Call agentLog.LogAction( "end of contract expiry emails")<br /><br />Exit Sub<br /><br />DXLerror:<br /><br />Call agentlog.LogWarning( "DXL error in emailBranches sub: " & doc.forename(0) & " " & doc.surname(0) & " - docID=" & Cstr( doc.UniversalID ) )<br /><br />Resume Next<br /><br />emailSendError:<br /><br />Call agentlog.LogWarning( "Unable to send email to" & strSendTo & " : " & Error$ )<br /><br />Resume Next<br /><br />End Sub<br /><br />To get an idea of how the DXL should look I first use my Notes client to manually create a sample of how I want the email to look like. When I'm happy with how the sample looks I export the sample document as DXL and open it up in a text editor and copy and paste the DXL code into my agent. I then fiddle around with the DXL and LotusScript to add the variable data into the DXL.<br /><br />Hope that helps :)<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/eZE9ghLAjzE" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/eZE9ghLAjzE/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10152009041715AMHOSCWC.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 3 Take 4 Report</title>
<pubDate>Thu, 15 Oct 2009 03:13:34 AM -0500</pubDate>
<dc:creator>Martin</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 3 Take 4 Report</dc:subject>
<description><![CDATA[Well, at least you try! To me, this is the most important in this, you don't give up...<br /><br />I started 1 September, I'm now in week 4, a bit stuck in that week (something that happens often, so I read: progress doesn't go that fast as the plan suggests), but I didn't skip a single session, so as far as I'm concerned, I'm doing allright :-). At the same time I'm in week 4 of the situp program.]]></description>
<content:encoded><![CDATA[Well, at least you try! To me, this is the most important in this, you don't give up...<br /><br />I started 1 September, I'm now in week 4, a bit stuck in that week (something that happens often, so I read: progress doesn't go that fast as the plan suggests), but I didn't skip a single session, so as far as I'm concerned, I'm doing allright :-). At the same time I'm in week 4 of the situp program.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/0_ZJHdg_FCE" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/0_ZJHdg_FCE/10132009091526PMHOS4NP.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10132009091526PMHOS4NP.htm?opendocument&amp;comments#15102009031334HOSBNJ.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Wed, 14 Oct 2009 10:39:09 AM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[@Carl - Can you do the NotesDXL work and incorporate it somehow into the content of a mail message? Because that is where I'm needing this table to be.]]></description>
<content:encoded><![CDATA[@Carl - Can you do the NotesDXL work and incorporate it somehow into the content of a mail message? Because that is where I'm needing this table to be.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/-8BRj8VYXso" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/-8BRj8VYXso/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10142009103909AMHOSLD2.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Wed, 14 Oct 2009 10:37:54 AM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[@Chris - C2 is just a value that will be set to 0, 1, or 2 based on some data in the document.]]></description>
<content:encoded><![CDATA[@Chris - C2 is just a value that will be set to 0, 1, or 2 based on some data in the document.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/rPE2SRLAPDE" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/rPE2SRLAPDE/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10142009103754AMHOSLC9.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Wed, 14 Oct 2009 10:07:05 AM -0500</pubDate>
<dc:creator>Carl Tyler</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[I stopped doing tables in Lotuscript and started doing them in NotesDXL, I found it much more flexible.]]></description>
<content:encoded><![CDATA[I stopped doing tables in Lotuscript and started doing them in NotesDXL, I found it much more flexible.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/iUmNKqvXhhQ" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/iUmNKqvXhhQ/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10142009100705AMHOSKQY.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Wed, 14 Oct 2009 09:29:38 AM -0500</pubDate>
<dc:creator>Christopher Byrne</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[What is C2? A column or some value in the information being processed?<br /><br />I am wondering if you could do it by importing a style sheet and setting the Paragraph style background image based on that StyleSheet. I have done that for setting fonts and cellpadding, but have not played with the background at all.]]></description>
<content:encoded><![CDATA[What is C2? A column or some value in the information being processed?<br /><br />I am wondering if you could do it by importing a style sheet and setting the Paragraph style background image based on that StyleSheet. I have done that for setting fonts and cellpadding, but have not played with the background at all.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/hzvVl2MNBbw" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/hzvVl2MNBbw/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10142009092938AMHOSJZN.htm</feedburner:origLink></item>
<item>
<title>Idea: Set table cell background color via LotusScript</title>
<pubDate>Wed, 14 Oct 2009 09:29:38 AM -0500</pubDate>
<dc:creator>Christopher Byrne</dc:creator>
<dc:subject>Idea: Set table cell background color via LotusScript</dc:subject>
<description><![CDATA[What is C2? A column or some value in the information being processed?<br /><br />I am wondering if you could do it by importing a style sheet and setting the Paragraph style background image based on that StyleSheet. I have done that for setting fonts and cellpadding, but have not played with the background at all.]]></description>
<content:encoded><![CDATA[What is C2? A column or some value in the information being processed?<br /><br />I am wondering if you could do it by importing a style sheet and setting the Paragraph style background image based on that StyleSheet. I have done that for setting fonts and cellpadding, but have not played with the background at all.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/GzYg8N2BYX4" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/GzYg8N2BYX4/10142009075004AMHOSH3C.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10142009075004AMHOSH3C.htm?opendocument&amp;comments#10142009092938AMHOSJZK.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</title>
<pubDate>Tue, 13 Oct 2009 04:47:12 PM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</dc:subject>
<description><![CDATA[That's really the reason I've continued on, just staying at the same level, because really, I don't care that much about doing an actual 100 in a row at some point. This is just keeping me regular in working-out, which up to the point I started this, I never, ever did.]]></description>
<content:encoded><![CDATA[That's really the reason I've continued on, just staying at the same level, because really, I don't care that much about doing an actual 100 in a row at some point. This is just keeping me regular in working-out, which up to the point I started this, I never, ever did.<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/uwnzkFSuWLM" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/uwnzkFSuWLM/10112009071631PMHOS2CD.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10112009071631PMHOS2CD.htm?opendocument&amp;comments#10132009044712PMHOSTK3.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</title>
<pubDate>Tue, 13 Oct 2009 09:26:12 AM -0500</pubDate>
<dc:creator>David Jones</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</dc:subject>
<description><![CDATA[It certainly does. Doing the program is great but I guess the real goal is to develop a habit of some exercise each week, which is why I was wondering if you were adding to it or just doing that last week each time.<br /><br />Thanks!]]></description>
<content:encoded><![CDATA[It certainly does. Doing the program is great but I guess the real goal is to develop a habit of some exercise each week, which is why I was wondering if you were adding to it or just doing that last week each time.<br /><br />Thanks!<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/bu7qGCRrRQk" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/bu7qGCRrRQk/10112009071631PMHOS2CD.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10112009071631PMHOS2CD.htm?opendocument&amp;comments#10132009092612AMHOSJXF.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</title>
<pubDate>Mon, 12 Oct 2009 01:02:21 PM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</dc:subject>
<description><![CDATA[David,<br /><br />I just do the Week 6 Column 3 numbers of sets every other day for a total of 3 days a week. Obviously I've not kept up with the at all over the last few months, but previously that's what I was doing. I haven't added higher numbers past the ones listed for Week 6 Column 3, except of course for when I go for the maximum possible on the last set. Does that help?]]></description>
<content:encoded><![CDATA[David,<br /><br />I just do the Week 6 Column 3 numbers of sets every other day for a total of 3 days a week. Obviously I've not kept up with the at all over the last few months, but previously that's what I was doing. I haven't added higher numbers past the ones listed for Week 6 Column 3, except of course for when I go for the maximum possible on the last set. Does that help?<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/Y-4Axo4fnsw" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/Y-4Axo4fnsw/10112009071631PMHOS2CD.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10112009071631PMHOS2CD.htm?opendocument&amp;comments#10122009010221PMHOSP6J.htm</feedburner:origLink></item>
<item>
<title>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</title>
<pubDate>Mon, 12 Oct 2009 11:18:25 AM -0500</pubDate>
<dc:creator>David Jones</dc:creator>
<dc:subject>100 Pushups - Week 6 Column 3 Day 2 Take 4 Report</dc:subject>
<description><![CDATA[I've just started doing these, finally, and I'm just curious what you've been doing since you finished the set. Are you just doing the Week 6 sets every week to help keep the muscles in shape or are you adding a few on your own?]]></description>
<content:encoded><![CDATA[I've just started doing these, finally, and I'm just curious what you've been doing since you finished the set. Are you just doing the Week 6 sets every week to help keep the muscles in shape or are you adding a few on your own?<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/vfX3wzZ8148" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/vfX3wzZ8148/10112009071631PMHOS2CD.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/10112009071631PMHOS2CD.htm?opendocument&amp;comments#10122009111825AMHOSM5K.htm</feedburner:origLink></item>
<item>
<title>My First 5K Experience</title>
<pubDate>Sat, 12 Sep 2009 09:51:32 PM -0500</pubDate>
<dc:creator>Phil Randolph</dc:creator>
<dc:subject>My First 5K Experience</dc:subject>
<description><![CDATA[Thanks Kitty!<br /><br />I look forward to running with some of the gang at LS10! Can't believe Paul is doing it! ;-)]]></description>
<content:encoded><![CDATA[Thanks Kitty!<br /><br />I look forward to running with some of the gang at LS10! Can't believe Paul is doing it! ;-)<img src="http://feeds.feedburner.com/~r/philrandolphcomments/~4/ARRXg3-bodk" height="1" width="1"/>]]></content:encoded>
<link>http://feedproxy.google.com/~r/philrandolphcomments/~3/ARRXg3-bodk/09072009011927PMHOSPH8.htm</link>
<feedburner:origLink>http://philrandolph.com/philrandolph/philrandolph.nsf/dx/09072009011927PMHOSPH8.htm?opendocument&amp;comments#09122009095132PMHOS5D9.htm</feedburner:origLink></item>

</channel></rss>
