<?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>jonathanrico. &#187; development</title>
	<atom:link href="http://jonathanrm.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanrm.com</link>
	<description></description>
	<lastBuildDate>Sun, 01 Aug 2010 18:01:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<script type="text/javascript">

if (typeof Meebo == 'undefined') {

Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};
(function(q){

	var args = arguments;
	if (!document.body) { return setTimeout(function(){ args.callee.apply(this, args) }, 100); }
	var d=document, b=d.body, m=b.insertBefore(d.createElement('div'), b.firstChild); s=d.createElement('script');
	m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id="meebo-iframe"></iframe>';
	s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;
	b.insertBefore(s, b.firstChild);

})({network:'jonathanrico_jo56qo'});	}</script>	<item>
		<title>App inventor for android</title>
		<link>http://jonathanrm.com/2010/07/app-inventor-for-android/</link>
		<comments>http://jonathanrm.com/2010/07/app-inventor-for-android/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 03:37:02 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=171</guid>
		<description><![CDATA[Here&#8217;s a nice tool from Google for building apps for Android: Learn more here : http://appinventor.googlelabs.com/about/ document.getElementById("post-171-blankimage").onload();]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a nice tool from Google for building apps for Android:</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/8ADwPLSFeY8&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed wmode="transparent" src="http://www.youtube.com/v/8ADwPLSFeY8&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>Learn more here : <a href="http://appinventor.googlelabs.com/about/">http://appinventor.googlelabs.com/about/</a></p>
<img style='display:none' id="post-171-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2010/07/app-inventor-for-android/',title:'App inventor for android',tweet:'Here&#8217;s a nice tool from Google for building apps for Android:  Learn more here : http://appinv',description:'Here&#8217;s a nice tool from Google for building apps for Android:  Learn more here : http://appinv'})"><script type='text/javascript'>document.getElementById("post-171-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2010/07/app-inventor-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A new Google Docs</title>
		<link>http://jonathanrm.com/2010/04/a-new-google-docs/</link>
		<comments>http://jonathanrm.com/2010/04/a-new-google-docs/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 00:39:42 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=134</guid>
		<description><![CDATA[Google just released new features for Google Docs, including a new addition to the suite called Drawings! As a user of google spreadsheets I was very aware of performance issues when working with large data files and this new version of the application seems to boost performance and at least scrolling seems to work very [...]]]></description>
			<content:encoded><![CDATA[<p>
Google just released new features for Google Docs, including a new addition to the suite called Drawings!</p>
<p>As a user of google spreadsheets I was very aware of performance issues when working with large data files and this new version of the application seems to boost performance and at least scrolling seems to work very well.</p>
<p>These are some great enhancements to the Google Docs suite and hopefully this brings more ideas for integrating Google Docs with Force.com through the <a href="http://wiki.developerforce.com/index.php/Google_Data_API_Toolkit" target="_blank">Google Data API Toolkit</a>.</p>
<p>Here&#8217;s a video with more info:
</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/6_hJ3R8jEZM&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed wmode="transparent" src="http://www.youtube.com/v/6_hJ3R8jEZM&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<img style='display:none' id="post-134-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2010/04/a-new-google-docs/',title:'A new Google Docs',tweet:' Google just released new features for Google Docs, including a new addition to the suite called Dra',description:' Google just released new features for Google Docs, including a new addition to the suite called Dra'})"><script type='text/javascript'>document.getElementById("post-134-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2010/04/a-new-google-docs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force.com Apex Merge/Replace Class ;)</title>
		<link>http://jonathanrm.com/2010/02/force-com-apex-mergereplace-class/</link>
		<comments>http://jonathanrm.com/2010/02/force-com-apex-mergereplace-class/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 07:26:10 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[apex]]></category>
		<category><![CDATA[force.com]]></category>
		<category><![CDATA[visualforce]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=85</guid>
		<description><![CDATA[Hello again! I just developed an Apex class for performing replace/merge operations on any kind of object, and yes any kind of relations as well! , so it doesn&#8217;t matter if you have master-detail relationships that can&#8217;t be modified, objects tied in a master-detail relationship will be cloned, deleted and inserted with the new values [...]]]></description>
			<content:encoded><![CDATA[<p>Hello again!</p>
<p>I just developed an Apex class for performing replace/merge operations on any kind of object, and yes any kind of relations as well! , so it doesn&#8217;t matter if you have master-detail relationships that can&#8217;t be modified, objects tied in a master-detail relationship will be cloned, deleted and inserted with the new values to simulate a merge operation!</p>
<p>To use the Merge class  just create an ObjectMerge instance, passing as an argument of the constructor your current record:</p>
<p><strong>ObjectMerge oMerge = new ObjectMerge(SourceObject); </strong></p>
<p>And to peform the merge operation just use the replaceRecord method and thats it!, you can specify if you want to delete the source record after the merge operation is done.</p>
<p><strong>oMerge.replaceRecord(MergeToThisObjectID,DeleteSourceObject);</strong></p>
<p>You can limit the number of records that will be processed in the merge operation for Master-Detail relations  to avoid hitting governor limits. The ObjectMerge class will let you know if there are any objects left, and if this is the case just continue performing the merge operation.</p>
<p>Force.com provides a merge DML operation but it&#8217;s only available for some of their standard objects, this class can help you get around that.  There are still some limitations with this class due to governor limits in the number of describe calls but unless you have a large amount of objects related to the replaced/merged record it should work pretty well.</p>
<p>For now, the Object Merge class only merges/replaces custom objects related to your record, but this can be changed  in the class , however keep in mind that no more than 10 relations can be processed due to describe calls limitations so be careful when removing the custom objects limitation because there can be many Non-Custom objects related to your record.</p>
<p>I&#8217;ll leave a link in this post to the files but for now here&#8217;s an example of how to use the ObjectMerge class in a VisualForce controller that merges contacts, if you have custom objects tied a contact A and want to merge contact A to Contact B you will see how the ObjectMerge class changes all of the objects from contact A to contact B then deletes contact A. Remember, you can try it with any custom object <img src='http://jonathanrm.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   Enjoy!</p>
<p>Download the files from here &#8211;&gt; <a title="ObjectMerge Files" href="http://jonathanrm.com/wp-content/uploads/2010/02/ObjectMerge1.zip" target="_blank">ObjectMerge</a></p>
<p>(NOTE: There&#8217;s a bug with the code viewer plug-in, please ignore the second viewer)</p>
<img style='display:none' id="post-85-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2010/02/force-com-apex-mergereplace-class/',title:'Force.com Apex Merge/Replace Class ;)',tweet:'Hello again! I just developed an Apex class for performing replace/merge operations on any kind of o',description:'Hello again! I just developed an Apex class for performing replace/merge operations on any kind of o'})"><script type='text/javascript'>document.getElementById("post-85-blankimage").onload();</script><textarea cols="40" rows="10" name="code" class="Java">public class MergeController{
    
    //This is just an Aux Object to get a Lookup Field in the VisualForce Page
    public Contact MergeAux{get;set;}
    //Declare an instance of the Object Merge Class
    private ObjectMerge oMerge;
    //Save the current contact in the controller (optional)
    private final Contact currentContact;
        
    public MergeController(ApexPages.StandardController controller){

        //Initialize all of our objects
        currentContact = (Contact)controller.getRecord();    
        MergeAux =new Contact();
        oMerge = new ObjectMerge(currentContact);        
        
    }
    
    //Merge Action
    public PageReference doMerge(){

        try{
     
            //Run the merge operation!, you can specify a second argument to delete the record after merge or not
            oMerge.replaceRecord(MergeAux.ReportsToId,false);
            
            //Do corresponding actions if merge operation was successful
            if(oMerge.bAppliedReplace){
                PageReference ref = new PageReference('/'+MergeAux.ReportsToId);
                ref.setRedirect(true);
                return ref;
            }else{
                return null;


        }catch(Exception e){
            
            ApexPages.addMessages(e);
            return null;    
        }
        
    }   

}

//And the Visual Force page will look something like this:

<apex:page standardController="Contact" extensions="MergeController">
     
     <apex:form >
         <apex:pageBlock >
             <apex:pageMessages id="messages">
             </apex:pageMessages>
             
             <apex:pageBlockButtons >
                 <apex:commandButton value="Merge" action="{!doMerge}" rerender="messages"/>
             </apex:pageBlockButtons>
             <apex:pageBlockSection columns="1">
                 <apex:outputField value="{!Contact.Name}"/>
                 <apex:inputField value="{!MergeAux.ReportsToId}"/>                
                 
             </apex:pageBlockSection>
         </apex:pageBlock>
     </apex:form>
     
</apex:page>

</textarea>
	<!-- WordPress Code Snippet -->
	<script type="text/javascript" src="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/shBrushJava.js"></script>
	<link type="text/css" rel="stylesheet" href="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End WordPress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2010/02/force-com-apex-mergereplace-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting ways of architecting Apex Triggers</title>
		<link>http://jonathanrm.com/2010/01/interesting-ways-of-architecting-apex-triggers/</link>
		<comments>http://jonathanrm.com/2010/01/interesting-ways-of-architecting-apex-triggers/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 05:54:55 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[apex]]></category>
		<category><![CDATA[force.com]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=65</guid>
		<description><![CDATA[Hello everyone! I came across a blog post at gokubi.com (http://gokubi.com/archives/two-interesting-ways-to-architect-apex-triggers) about some interesting ways of architecting Apex Triggers. We have developed a lot of logic in Apex Triggers and ended with some really nasty code in some scenarios; this post got me thinking about new ways to architect triggers using a more object-oriented approach. [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone!</p>
<p>I came across a blog post at gokubi.com (<a href="http://gokubi.com/archives/two-interesting-ways-to-architect-apex-triggers" target="_blank">http://gokubi.com/archives/two-interesting-ways-to-architect-apex-triggers</a>) about some interesting ways of architecting Apex Triggers.</p>
<p>We have developed a lot of logic in Apex Triggers and ended with some really nasty code in some scenarios; this post got me thinking about new ways to architect triggers using a more object-oriented approach. So just to follow the thoughts in this post I&#8217;ll show you what I did to organize our triggers and it has been working pretty good so far.</p>
<p>NOTE: Please refer to the code section below</p>
<p>//Step 1</p>
<p>I started by creating an Apex Class to replicate some of the triggers functionality&#8230;</p>
<p>//Step 2</p>
<p>The next step will be to start coding our Apex Class that will perform all of the logic in our triggers, so let&#8217;s say the we are building a trigger for My_Object__c custom object.</p>
<p>//Step 3</p>
<p>And finally, we just need to create the Apex Triggers that will just initialize our Trigger class and initialize an instance of the corresponding Apex Class that will handle all of the logic.</p>
<p>And that&#8217;s it! Just remeber to cast the the collections correctly before accessing the collections from the ExtTrigger class because we can&#8217;t work with generic sobject collections.</p>
<p>Some of the benefits that I&#8217;ve seen by organizing Apex Triggers in this way are the following:</p>
<ul>
<li>100% Test Coverage in Apex Triggers (although all of the Test Coverage should be done in the handler Apex Class)</li>
<li>Since we can call functions to perform specific actions in Apex Classes, we end up with more organized code, it&#8217;s easier to read in the sense that you can just go to see the calls inside the &#8220;onBeforeInsert&#8221; section for example..</li>
<li>Avoid the max number of characters governor limit:
<ul>
<li>Maximum number of characters for a class: 100,000</li>
<li>Maximum number of characters for a trigger: 32,000</li>
</ul>
</li>
</ul>
<p>Thanks to everyone that posted in gokubi&#8217;s blog post any feedback on this is appreciated <img src='http://jonathanrm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img style='display:none' id="post-65-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2010/01/interesting-ways-of-architecting-apex-triggers/',title:'Interesting ways of architecting Apex Triggers',tweet:'Hello everyone! I came across a blog post at gokubi.com (http://gokubi.com/archives/two-interesting-',description:'Hello everyone! I came across a blog post at gokubi.com (http://gokubi.com/archives/two-interesting-'})"><script type='text/javascript'>document.getElementById("post-65-blankimage").onload();</script><textarea cols="40" rows="10" name="code" class="Java">
//--------------Step 1

public class ExtTrigger {

	public List newValues;
	public List oldValues;
	public Map newMap;
	public Map oldMap;

	public Boolean isInsert = false;
	public Boolean isUpdate = false;
	public Boolean isDelete = false;
	public Boolean isUndelete = false;
	public Boolean isBefore = false;
	public Boolean isAfter = false;

	public ExtTrigger(List oldValues,List newValues,Map oldMap,Map newMap){

		this.newValues = newValues;
		this.oldValues = oldValues;
		this.oldMap = oldMap;
		this.newMap = newMap;

	}

}

//--------------Step 2

public class My_Object_Trigger {

	//Attributes
	public ExtTrigger MTrigger;

	public My_Object_Trigger(ExtTrigger MTrigger){

		this.MTrigger = MTrigger;

	}

	public void onBeforeInsert(){

		try{

			doSomething();
			doSomethingElse();

		}catch(Exception e){

		System.debug('Trigger Insert Exception '+e);
		((My_Object_c)MTrigger.newValues[0]).addError(sExceptionMessage);

		}

	}

	public void onBeforeUpdate(){

		try{

			doSomething();
			doSomethingElse();

		}catch(Exception e){

			System.debug('Trigger Update Exception '+e);
			((My_Object_c)MTrigger.oldValues[0]).addError(sExceptionMessage);

		}

	}

	//Etc....

	private void doSomething(){}
	private void doSomethingElse(){}

}

//--------------Step 3

trigger My_Object_Trigger on My_Object__c (before insert, before update) {

	//Create the instance of ExtTrigger and call the constructor in our apex class
	My_Object_Trigger triggerHandler = new My_Object_Trigger(
	new ExtTrigger(Trigger.old,Trigger.new,Trigger.oldMap,Trigger.newMap)
	);

	if(Trigger.isBefore){

		//Now we set the attributes for our trigger depending on the current context
		triggerHandler.MTrigger.isBefore = true;
	
		if(Trigger.isInsert){
	
			triggerHandler.MTrigger.isInsert = true;
			triggerHandler.onBeforeInsert();
	
		}
	
		if(Trigger.isUpdate){
	
			triggerHandler.MTrigger.isUpdate = true;
			triggerHandler.onBeforeUpdate();
	
		}

	}

}</textarea>
	<!-- WordPress Code Snippet -->
	<script type="text/javascript" src="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/shCore.js"></script><script type="text/javascript" src="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/shBrushJava.js"></script>
	<link type="text/css" rel="stylesheet" href="http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/css/SyntaxHighlighter.css"/>
	
	<script language="javascript">
	dp.SyntaxHighlighter.ClipboardSwf = 'http://jonathanrm.com/wp-content/plugins/wordpress-code-snippet/js/clipboard.swf';
	dp.SyntaxHighlighter.HighlightAll('code');
	</script>
	<!-- End WordPress Code Snippet -->
	]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2010/01/interesting-ways-of-architecting-apex-triggers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force.com Spring &#8217;10 Release</title>
		<link>http://jonathanrm.com/2010/01/force-com-spring-10-release/</link>
		<comments>http://jonathanrm.com/2010/01/force-com-spring-10-release/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 04:16:26 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[apex]]></category>
		<category><![CDATA[force.com]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=61</guid>
		<description><![CDATA[Salesforce&#8217;s Spring &#8217;10 is packed with some really nice enhancements, new interface, code scheduler, no limits in collections, and more! For more information go to: http://developer.force.com/releases/release/Spring10 Here&#8217;s a small demo of how code scheduler works: document.getElementById("post-61-blankimage").onload();]]></description>
			<content:encoded><![CDATA[<p>Salesforce&#8217;s Spring &#8217;10 is packed with some really nice enhancements, new interface, code scheduler, no limits in collections, and more!</p>
<p>For more information go to: <a href="http://developer.force.com/releases/release/Spring10">http://developer.force.com/releases/release/Spring10</a></p>
<p>Here&#8217;s a small demo of how code scheduler works:</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/nbfPgr7LLfc&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed wmode="transparent" src="http://www.youtube.com/v/nbfPgr7LLfc&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<img style='display:none' id="post-61-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2010/01/force-com-spring-10-release/',title:'Force.com Spring &#8217;10 Release',tweet:'Salesforce&#8217;s Spring &#8217;10 is packed with some really nice enhancements, new interface, cod',description:'Salesforce&#8217;s Spring &#8217;10 is packed with some really nice enhancements, new interface, cod'})"><script type='text/javascript'>document.getElementById("post-61-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2010/01/force-com-spring-10-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force.com platform as a service</title>
		<link>http://jonathanrm.com/2009/07/force-com-platform-as-a-service/</link>
		<comments>http://jonathanrm.com/2009/07/force-com-platform-as-a-service/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 23:36:10 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[force.com]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=5</guid>
		<description><![CDATA[For the last 4-5 months i’ve been working with the force.com platform, more specifically with the on-demand CRM salesforce.com. In these few months working in this platform, i’ve seen some major improvements that i think will establish force.com as a major platform for the development of web applications, among these: Visualforce, Web-services (which have been around for some [...]]]></description>
			<content:encoded><![CDATA[<div id="j_id0:j_id1:theForm:postContainer:j_id71:j_id76:3:j_id78:j_id79:j_id102">For the last 4-5 months i’ve been working with the <a href="http://force.com/" target="_BLANK">force.com</a> platform, more specifically with the on-demand CRM <a href="http://salesforce.com/" target="_BLANK">salesforce.com</a>. In these few months working in this platform, i’ve seen some major improvements that i think will establish <a href="http://force.com/" target="_BLANK">force.com</a> as a major platform for the development of web applications, among these: Visualforce, Web-services (which have been around for some time), integration with Google and APIs provided for other frameworks such as Adobe Flex/Air.</p>
<p>This platform as a service concept is new for me and I think it offers great advantages in matters of development &amp; deployment time,acquisition and maintenance costs of hardware &amp; software. And now, with Visualforce, it gives developers the ability to follow the Model-View-Controller Design Pattern in order to have data models, business logic and user interface in different layers.</p>
<p>I’ll post more information about how to work on each of these layers and maybe show some code of examples that i come to write in this platform.</p>
<p>For more info, check out <a title="SalesForce.com" href="http://salesforce.com" target="_blank">salesforce.com</a></p>
</div>
<img style='display:none' id="post-5-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2009/07/force-com-platform-as-a-service/',title:'Force.com platform as a service',tweet:'For the last 4-5 months i’ve been working with the force.com platform, more specifically with the',description:'For the last 4-5 months i’ve been working with the force.com platform, more specifically with the'})"><script type='text/javascript'>document.getElementById("post-5-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2009/07/force-com-platform-as-a-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autocomplete component</title>
		<link>http://jonathanrm.com/2009/04/autocomplete-component/</link>
		<comments>http://jonathanrm.com/2009/04/autocomplete-component/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 19:57:55 +0000</pubDate>
		<dc:creator>jonathan</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[force.com]]></category>
		<category><![CDATA[visualforce]]></category>

		<guid isPermaLink="false">http://jonathanrm.com/?p=45</guid>
		<description><![CDATA[Hello everyone, just wanted to share with the community this custom component I made and give something back for the help I&#8217;ve received The purpose of the component is to enable autocomplete in lookup fields. I used the autocomplete js created by Jim Roos: (http://www.jimroos.com/2007/05/ajax-autocomplete.html) but made some modifications to it so that it could [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone, just wanted to share with the community this custom component I made and give something back for the help I&#8217;ve received <img src='http://jonathanrm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The purpose of the component is to enable autocomplete in lookup fields. I used the autocomplete js created by Jim Roos:<br />
(http://www.jimroos.com/2007/05/ajax-autocomplete.html) but made some modifications to it so that it could interact with an Apex controller among some other things&#8230;</p>
<p>So my idea was that if you were making a VF page that had an inputfield that was related to a lookupfield you would just insert this autocomplete component to that inputfield.</p>
<p>Something like this:</p>
<p style="padding-left: 30px;">&lt;apex:inputField value=&#8221;{!Contact.accountid}&#8221; id=&#8221;accname&#8221; styleClass=&#8221;cField&#8221;&gt;</p>
<p style="padding-left: 30px;">&lt;c:autocomplete ObjectName=&#8221;Accounts&#8221; InputId=&#8221;{!$Component.accname}&#8221;</p>
<p style="padding-left: 30px;">AutoCompleteId=&#8221;accACid&#8221; ClassName=&#8221;autocomplete300&#8243;/&gt;</p>
<p style="padding-left: 30px;">&lt;/apex:inputField&gt;</p>
<p>The component has 4 parameters:</p>
<p>The name of the object or custom object that the inputfield relates to (new objects must be added inside the apex classes since i had some problems constructing a dynamic query).<br />
The InputId which is used to relate the component to the input field<br />
The id for the Component<br />
A classname parameter that basically just defines the width of the suggestions menu.</p>
<p>Here&#8217;s a screenshot of how it looks like in action:</p>
<p><img src="http://www.jonathanrm.com/files/accomponent1.gif" border="0" alt="" /><br />
<img src="http://www.jonathanrm.com/files/accomponent.gif" border="0" alt="" /></p>
<p>Here&#8217;s a link to the file containing the required files:<br />
<a href="http://www.jonathanrm.com/files/autocomplete.zip" target="_blank"><br />
AutoCompleteComponent</a></p>
<img style='display:none' id="post-45-blankimage" onload="Meebo('discoverSharable', {element: ((this.parentNode.className.match('post')) ? this.parentNode : this.parentNode.parentNode) ,url:'http://jonathanrm.com/2009/04/autocomplete-component/',title:'Autocomplete component',tweet:'Hello everyone, just wanted to share with the community this custom component I made and give someth',description:'Hello everyone, just wanted to share with the community this custom component I made and give someth'})"><script type='text/javascript'>document.getElementById("post-45-blankimage").onload();</script>]]></content:encoded>
			<wfw:commentRss>http://jonathanrm.com/2009/04/autocomplete-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
