<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shawn Franklin &#187; Uncategorized</title>
	<atom:link href="http://www.shawnfranklin.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shawnfranklin.com</link>
	<description>A blog on my work and hobbies</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:05:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Listed on the Force.com Sites Gallery</title>
		<link>http://www.shawnfranklin.com/2010/08/listed-on-the-force-com-sites-gallery/</link>
		<comments>http://www.shawnfranklin.com/2010/08/listed-on-the-force-com-sites-gallery/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 22:05:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shawnfranklin.com/2010/08/listed-on-the-force-com-sites-gallery/</guid>
		<description><![CDATA[My work on the Force.com Site I built recently was listed on the &#8220;Sites Gallery&#8221; by Salesforce.com. Check it out &#8211; http://developer.force.com/sitesgallery]]></description>
			<content:encoded><![CDATA[<p>My work on <a target="_blank" href="http://datacenters.digitalrealtytrust.com/">the Force.com Site I built</a> recently was listed on the &#8220;Sites Gallery&#8221; by Salesforce.com.</p>
<p>Check it out &#8211; <a target="_blank" href="http://developer.force.com/sitesgallery">http://developer.force.com/sitesgallery</a></p>
<p><img style="max-width: 400px;" src="http://www.shawnfranklin.com/wp-content/uploads/2010/08/sites_gallery.png" /></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=497c40ae-7622-8587-9c91-3258de0dea65" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2010/08/listed-on-the-force-com-sites-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My First Force.com Site</title>
		<link>http://www.shawnfranklin.com/2010/08/my-first-force-com-site/</link>
		<comments>http://www.shawnfranklin.com/2010/08/my-first-force-com-site/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 20:52:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shawnfranklin.com/2010/08/my-first-force-com-site/</guid>
		<description><![CDATA[Check it out &#8211; http://datacenters.digitalrealtytrust.com/ I learned a lot in making my first Force.com Site: a lot of apex, a lot of visualforce and a lot Amazon Web Services. This Force.com Site consisted of: 3 visualforce pages 1 apex class 1 apex test class 2 custom objects and a ton of custom fields all images [...]]]></description>
			<content:encoded><![CDATA[<p>Check it out &#8211; <a target="_blank" href="http://datacenters.digitalrealtytrust.com/">http://datacenters.digitalrealtytrust.com/</a></p>
<div align="center"><img style="max-width: 450px;" src="http://www.shawnfranklin.com/wp-content/uploads/2010/08/my_first_force_com_site.png" /></div>
<p>I learned a lot in making my first Force.com Site: a lot of apex, a lot of visualforce and a lot Amazon Web Services.</p>
<p>This Force.com Site consisted of:
<ul>
<li>3 visualforce pages</li>
<li>1 apex class</li>
<li>1 apex test class</li>
<li>2 custom objects and a ton of custom fields</li>
<li>all images and videos were stored on Amazon Web Services (AWS) and served through Cloudfront</li>
<li>most CSS and javascript files were stored on AWS and served through Cloudfront</li>
<li>uses JW Player (http://www.longtailvideo.com/) to play the video</li>
<li>uses jquery for the mouse over popup</li>
</ul>
<p>Learns:
<ul>
<li>the rich-text fields are still in &#8220;beta&#8221; for a reason &#8211; they don&#8217;t seem to work on visualforce pages yet</li>
<li>writing test methods for an apex class is a pain! &#8211; start by writing the test method first, then write the production method </li>
</ul>
<p>I&#8217;m glad to have this experience under my belt. In fact, I&#8217;m proud enough of the Site that the local SFDC User Group is letting me present it (and my experience) to the group at the next meeting.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=d6784f36-c561-8cf5-83b1-833ce2f18a53" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2010/08/my-first-force-com-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using javascript and visualforce to solve a calculation problem</title>
		<link>http://www.shawnfranklin.com/2010/04/using-javascript-and-visualforce-to-solve-a-calculation-problem/</link>
		<comments>http://www.shawnfranklin.com/2010/04/using-javascript-and-visualforce-to-solve-a-calculation-problem/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 18:13:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shawnfranklin.com/2010/04/using-javascript-and-visualforce-to-solve-a-calculation-problem/</guid>
		<description><![CDATA[I had the need for a formula field in Salesforce.com to do two things: Evaluate an expression that my user types in. example: ((2+2) * 6) / 3 Store the actual formula the user typed in to another field, in the case the formula should be audited for accuracy. The formula is different for every [...]]]></description>
			<content:encoded><![CDATA[<div class="lia-message-body-content">
<p>I had the need for a formula field in Salesforce.com to do two things:</p>
<p>
<ol>
<li>Evaluate an expression that my user types in. example: ((2+2) * 6) / 3</li>
<p>
<li>Store the actual formula the user typed in to another field, in the case the formula should be audited for accuracy.</li>
<p></ol>
<p>
<p>The formula is different for every record (being used on the Contract standard object), thus the need for my user to type it in. Plus, I have to be able include the actual formula in a Report column for auditors.</p>
<p>
<p>I solved this using a few things:</p>
<p>
<ol>
<li>Two custom fields:&#8221;FieldX__c&#8221; for the custom expression and &#8220;FieldY__c&#8221; for the evaluation</li>
<p>
<li>Javacript to conduct the calculation</li>
<p>
<li>A visualforce page to put the two fields and javascript together</li>
<p></ol>
<p>
<p>Here, in written format, is what the user experiences:</p>
<p>
<ol>
<li>The user types their custom expression into &#8220;FieldX__c&#8221; &#8211; ex: (2 + 2) * 6</li>
<p>
<li>The user clicks on the &#8220;=&#8221; button</li>
<p>
<li>The javascript evalutes the expression in &#8220;FieldX__C&#8221; and stores the value in &#8220;FieldY__c&#8221;</li>
<p></ol>
<p><span id="more-119"></span>
<p>Here is the apex code used for the visualforce page that includes the javascript:</p>
<p>&lt;apex:page showHeader=&#8221;true&#8221; sidebar=&#8221;false&#8221; standardController=&#8221;Contract&#8221;&gt;</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />function calculate(equation)<br />{<br />&nbsp; // equation can have characters 0-9, +, -, *, /, (, ), . and spaces<br />&nbsp; // If there are any other characters, return an error<br />&nbsp;<br />&nbsp; var answer = &#8216;Equation can ONLY have characters 0-9, +, -, *, /, (, ), . and spaces&#8217;;</p>
<p>&nbsp; if (equation.match(/^[0-9+\-*/(). ]*$/))<br />&nbsp; {<br />&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; answer = equation != &#8221; ? eval(equation) : &#8217;0&#8242;;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; catch (e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Syntax error &#8211; Do nothing&#8230; answer remains &#8216;err&#8217;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp; }<br />&nbsp;<br />&nbsp; return answer;<br />}<br />//<br />&lt;/script&gt;<br />&lt;apex:form&gt;</p>
<p>&lt;apex:pageBlock id=&#8221;custCalcs&#8221;&gt;</p>
<p>&nbsp;&nbsp;&nbsp; &lt;apex:pageBlockButtons &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:commandButton value=&#8221;Save&#8221; action=&#8221;{!save}&#8221;&nbsp; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:commandButton value=&#8221;Cancel&#8221; action=&#8221;{!cancel}&#8221;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; &lt;/apex:pageBlockButtons&gt;<br />&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; &lt;apex:pageBlockSection title=&#8221;Enter Custom Expressions Here&#8221; columns=&#8221;1&#8243;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:pageBlockSectionItem &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:outputLabel value=&#8221;Total Rent&#8221; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:outputPanel &gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:inputField value=&#8221;{!Contract.FieldX__c}&#8221; style=&#8221;width:400px;&#8221; id=&#8221;equation&#8221;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onkeypress=&#8221;if ((window.event ? event.keyCode : event.which) == 13) { this.form.elements['{!$Component.answer}'].value = calculate(this.value); }&#8221;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&#8221;button&#8221; value=&#8221; = &#8221; onclick=&#8221;this.form.elements['{!$component.answer}'].value = calculate(this.form.elements['{!$component.equation}'].value);&#8221; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;apex:inputField value=&#8221;{!Contract.FieldY__c}&#8221; id=&#8221;answer&#8221;/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/apex:outputPanel&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/apex:pageBlockSectionItem&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp; &lt;/apex:pageBlockSection&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&lt;/apex:pageBlock&gt; </p>
<p>&lt;/apex:form&gt;</p>
<p>&lt;/apex:page&gt;</p>
</div>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=ec53f49e-8e63-8cb7-9d5c-dd784fea1edc" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2010/04/using-javascript-and-visualforce-to-solve-a-calculation-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Products</title>
		<link>http://www.shawnfranklin.com/2009/10/google-products/</link>
		<comments>http://www.shawnfranklin.com/2009/10/google-products/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 18:21:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.shawnfranklin.com/2009/10/google-products/</guid>
		<description><![CDATA[Just a quick note to highlight the proliferation of Google throughout my life: Home &#8211; I use gmail like an addict Home &#8211; All of my contacts are synced up with Google Contacts Home &#8211; My wife and I use Google Docs to help keep track of the family budget Home &#8211; My wife and [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note to highlight the proliferation of Google throughout my life:
<ul>
<li>Home &#8211; I use gmail like an addict</li>
<li>Home &#8211; All of my contacts are synced up with Google Contacts</li>
<li>Home &#8211; My wife and I use Google Docs to help keep track of the family budget</li>
<li>Home &#8211; My wife and I use Google Picasa to store all of our photos online</li>
<li>Home &#8211; My wife and I use Blogger to&#8230;blog</li>
<li>Home &#8211; I subscribe to several RSS feeds and use Google Reader multiple times a day</li>
<li>Home &#8211; I recently set up a Google Voice account for call-forwarding and voice mail</li>
<li>Work &#8211; I use the Google Data Visualization API at work to generate graphs</li>
<li>Work &#8211; Of course, I use Google Search hourly</li>
<li>Work &#8211; We will be using Google AdWords to manage our PPC campaign in 2010&nbsp;</li>
<li>Work &#8211; Several of our videos are hosted on YouTube</li>
<li>Work &#8211; A large section of our corporate website uses Google Maps</li>
<li>Work &#8211; We use Google Analytics to track stats on our website</li>
</ul>
<p>No wonder they are slowly taking over the world.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=63db6a62-f3de-8228-ad55-c98731bec664" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2009/10/google-products/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marketing &#8220;Systems&#8221; I use</title>
		<link>http://www.shawnfranklin.com/2009/07/marketing-systems-i-use/</link>
		<comments>http://www.shawnfranklin.com/2009/07/marketing-systems-i-use/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 13:49:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shawnfranklin.com/2009/07/marketing-systems-i-use/</guid>
		<description><![CDATA[I was just putting together a list of all &#8220;systems&#8221; I use here in the Marketing department and thought I would share. My job title, officially, is &#8216;Marketing Information Systems Manager&#8217;. Here is the list: Website &#8211; (www.digitalrealtytrust.com): built on .NET 3.5 on Windows Server 2008 and SQL Server 2008 &#8220;Knowledge Library&#8221; &#8211; (knowledge.digitalrealtytrust.com): built [...]]]></description>
			<content:encoded><![CDATA[<p>I was just putting together a list of all &#8220;systems&#8221; I use here in the Marketing department and thought I would share. My job title, officially, is &#8216;Marketing Information Systems Manager&#8217;.</p>
<p>Here is the list:
<ul>
<li>Website &#8211; (www.digitalrealtytrust.com): built on .NET 3.5 on Windows Server 2008 and SQL Server 2008</li>
<li>&#8220;Knowledge Library&#8221; &#8211; (knowledge.digitalrealtytrust.com): built on the WordPress blogging platform</li>
<li>Salesforce.com &#8211; (www.salesforce.com): the sales force automation, CRM tool we use</li>
<li>Engage B2B &#8211; (www.silverpop.com): the email marketing automation tool we use</li>
<li>GoToWebinar &#8211; (www.gotowebinar.com): our online webinar provider</li>
<li>Google Analytics &#8211; (www.google.com/analtyics): our web stats tracking tool</li>
<li>Google Picasa &#8211; (www.google.com/picasa): our online photo library</li>
<li>YouTube &#8211; (www.youtube.com/digitalrealtytrust): video sharing account</li>
<li>Twitter &#8211; (www.twitter.com/drtdatacenters): so our users know &#8220;what [we're] doing&#8221;</li>
<li>LinkedIn &#8211; (www.linkedin.com/groups?gid=1898885): our social networking group</li>
<li>Basecamp &#8211; (www.basecamphq.com): our online project management software</li>
<li>OnStream (www.onstreammedia.com): our CDN, video hosting and serving account</li>
<li>bit.ly &#8211; (www.bit.ly): our URL microformat service</li>
<li>Google FeedBurner &#8211; (www.feedburner.com): our RSS feed publishing tool</li>
<li>iTunes &#8211; (www.itunes.com): our podcast and video podcast listing directory</li>
<li>GoDaddy &#8211; (www.godaddy.com): our domain registrar</li>
</ul>
<p>I was making a list of all my admin passwords for the above list, saw the list continue to grow and thought it was pretty impressive list of tools and systems for which I am the admin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2009/07/marketing-systems-i-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recent upgrade</title>
		<link>http://www.shawnfranklin.com/2009/02/recent-upgrade/</link>
		<comments>http://www.shawnfranklin.com/2009/02/recent-upgrade/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 20:18:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shawnfranklin.com/2009/02/recent-upgrade/</guid>
		<description><![CDATA[I&#8217;ve recently upgraded to WordPress 2.7.1 and modified the theme. There is a project at Digital Realty Trust that we are developing and will use WordPress as the selected platform. Now, I&#8217;ll have more working knowledge about WP while I manage this project. So far I like 2.7. I&#8217;ve since downloaded the WordPress app to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently upgraded to WordPress 2.7.1 and modified the theme. </p>
<p>There is a project at Digital Realty Trust that we are developing and will use WordPress as the selected platform. Now, I&#8217;ll have more working knowledge about WP while I manage this project. </p>
<p>So far I like 2.7. I&#8217;ve since downloaded the WordPress app to my iPhone and am writing this entry from my iPhone.</p>
<p>I encourage you to upgrade if you&#8217;re running WordPress. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.shawnfranklin.com/2009/02/recent-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
