<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	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:atom="http://www.w3.org/2005/Atom">
	
	<channel>
	
		<title>Developing Mobile Applications with Force.com and Sencha Touch &#45; Part 2</title>
		<link>http://www.sencha.com/blog/developing-mobile-applications-with-forcecom-and-sencha-touch-part-2</link>
		<description>In the first part of our series introducing you to the Sencha Touch mobile framework, we built the foundation for a simple mobile application hosted in a Visualforce page that displays lead data served from an Apex controller. We reviewed the basics of the Sencha class system and MVC data package by constructing model, view, controller and store components in Javascript.</description>
		<dc:language>en-us</dc:language>
		<dc:creator>don@forcementor.com</dc:creator>
		<dc:rights>Copyright 2012</dc:rights>
		<dc:date>2012-09-17T18:00:06+00:00</dc:date>
		<admin:generatorAgent rdf:resource="http://expressionengine.com/" />
		<atom:link href="http://www.sencha.com/blog/comments-rss/12078" rel="self" type="application/rss+xml" />
  
		
  
		<item>
      <title>Comment by Don Robins</title>
      <description>There is an error in the article above &#45; I did not clearly indicate that in the Store you MUST comment out or remove the line that sets the &#8216;data&#8217; configuration to the Apex controller data binding:

\\data: &#123;!Leads&#125;,

This binding, which previously received the JSON from the Apex controller getter mtehod getLeads(), is replaced by an autoload process provided by the new proxy added to the model.</description>
      <content:encoded><![CDATA[<p>There is an error in the article above - I did not clearly indicate that in the Store you MUST comment out or remove the line that sets the &#8216;data&#8217; configuration to the Apex controller data binding:</p>

<p>\\data: &#123;!Leads&#125;,</p>

<p>This binding, which previously received the JSON from the Apex controller getter mtehod getLeads(), is replaced by an autoload process provided by the new proxy added to the model.</p>]]></content:encoded>
      <pubDate>Mon, 15 Oct 2012 21:26 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32411#date:21:26</guid>
    </item>
  
		<item>
      <title>Comment by Don Robins</title>
      <description>Ken &#45; if you were not using Safari as a browser, (perhaps you&#8217;re using Chrome or Mozilla,) the links to the Sencha libraries won&#8217;t work as they are not on a secure server. That would explain needing to put them in static resources. You should be able to paste the Apex final controller code, but will have to completely remove the data binding expression to &#8220;&#123;!leads&#125;&#8221; in the store.&amp;nbsp; Commenting it out won&#8217;t work. Once you replace the store with the new proxy and connect the new Apex controller, full CRUD should work; I&#8217;ve built from pasting the code which is why I&#8217;m confident.&amp;nbsp; However, the code was to be posted in a zipfile &#40;rather than on Git&#41; after Dreamforce, and I&#8217;ll find out where it is available.&amp;nbsp; Glad you find it of interest! What you may find is that once you get used to the patterns, you can build mobile apps incredibly fast against your Force.com org.&amp;nbsp; Please let us know if you build out projects, and how they work out.&amp;nbsp; Thanks!</description>
      <content:encoded><![CDATA[<p>Ken - if you were not using Safari as a browser, (perhaps you&#8217;re using Chrome or Mozilla,) the links to the Sencha libraries won&#8217;t work as they are not on a secure server. That would explain needing to put them in static resources. You should be able to paste the Apex final controller code, but will have to completely remove the data binding expression to &#8220;&#123;!leads&#125;&#8221; in the store.&nbsp; Commenting it out won&#8217;t work. Once you replace the store with the new proxy and connect the new Apex controller, full CRUD should work; I&#8217;ve built from pasting the code which is why I&#8217;m confident.&nbsp; However, the code was to be posted in a zipfile &#40;rather than on Git&#41; after Dreamforce, and I&#8217;ll find out where it is available.&nbsp; Glad you find it of interest! What you may find is that once you get used to the patterns, you can build mobile apps incredibly fast against your Force.com org.&nbsp; Please let us know if you build out projects, and how they work out.&nbsp; Thanks!</p>]]></content:encoded>
      <pubDate>Sat, 29 Sep 2012 00:53 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32343#date:00:53</guid>
    </item>
  
		<item>
      <title>Comment by Ken Brewer</title>
      <description>Very performant, and I like the way it integrates with Apex &#45; although I ran into several issues getting the code from Part 1 and 2 to work.&amp;nbsp; I got a Salesforce error on the external references and had do download and add as resources &#45; other problem the control code would not compile in part 2 because of a reference to getLeads &#45; I added the function to the example to get it to run again, but gave up getting full CRUD.&amp;nbsp; If you could add a link to a working source in GIT or somewhere it would be greatly appreciated .</description>
      <content:encoded><![CDATA[<p>Very performant, and I like the way it integrates with Apex - although I ran into several issues getting the code from Part 1 and 2 to work.&nbsp; I got a Salesforce error on the external references and had do download and add as resources - other problem the control code would not compile in part 2 because of a reference to getLeads - I added the function to the example to get it to run again, but gave up getting full CRUD.&nbsp; If you could add a link to a working source in GIT or somewhere it would be greatly appreciated .</p>

]]></content:encoded>
      <pubDate>Sat, 29 Sep 2012 00:29 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32342#date:00:29</guid>
    </item>
  
		<item>
      <title>Comment by Don Robns</title>
      <description>Richard&#8230;The Sencha folk will likely advise to follow practices as per architect&#8217;s code generation. I have not looked closely at what you describe (yet), but the key is keeping your view and controller as decoupled as possible. Whatever works best to promote the practice of _not_ being too dependent upon anything from the view itself other than the action being fired. We want the controller to be responding to the action regardless of the view that emits it as there may be many. I followed this pattern also to be able to test that the buttons work without the controller even built yet which would be harder without the listeners. Perhaps someone else will chime in here and pick up the thread, you can also post the general question on the Sencha forums. So glad you found it all useful.</description>
      <content:encoded><![CDATA[<p>Richard&#8230;The Sencha folk will likely advise to follow practices as per architect&#8217;s code generation. I have not looked closely at what you describe (yet), but the key is keeping your view and controller as decoupled as possible. Whatever works best to promote the practice of _not_ being too dependent upon anything from the view itself other than the action being fired. We want the controller to be responding to the action regardless of the view that emits it as there may be many. I followed this pattern also to be able to test that the buttons work without the controller even built yet which would be harder without the listeners. Perhaps someone else will chime in here and pick up the thread, you can also post the general question on the Sencha forums. So glad you found it all useful.</p>]]></content:encoded>
      <pubDate>Thu, 20 Sep 2012 13:54 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32254#date:13:54</guid>
    </item>
  
		<item>
      <title>Comment by Richard Shergold</title>
      <description>Don, thanks for this, this is really useful.&amp;nbsp; I have a question regarding listeners, controllers and events.&amp;nbsp; I like the way that you have (for example) a listener function in a view which uses fireEvent to fire an event in the Controller.&amp;nbsp; This make sense to me and I think makes the application easy to understand.&amp;nbsp; However, using Architect, its possible to use the ConvertToAction option which REMOVES the listener code from view completely and moves it up into the controller.&amp;nbsp; What is considered best practice &#45; to have listeners down at the component level calling events in the Controller like you have done in the article or to do what &#8220;Convert To Action&#8221; does and remove the listener code?&amp;nbsp;  Sorry if I haven&#8217;t worded this particularly well but I am very new to Sencha Touch.&amp;nbsp; Thanks again for the article.</description>
      <content:encoded><![CDATA[<p>Don, thanks for this, this is really useful.&nbsp; I have a question regarding listeners, controllers and events.&nbsp; I like the way that you have (for example) a listener function in a view which uses fireEvent to fire an event in the Controller.&nbsp; This make sense to me and I think makes the application easy to understand.&nbsp; However, using Architect, its possible to use the ConvertToAction option which REMOVES the listener code from view completely and moves it up into the controller.&nbsp; What is considered best practice - to have listeners down at the component level calling events in the Controller like you have done in the article or to do what &#8220;Convert To Action&#8221; does and remove the listener code?&nbsp;  Sorry if I haven&#8217;t worded this particularly well but I am very new to Sencha Touch.&nbsp; Thanks again for the article.</p>]]></content:encoded>
      <pubDate>Thu, 20 Sep 2012 09:17 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32252#date:09:17</guid>
    </item>
  
		<item>
      <title>Comment by Jorge Ramon</title>
      <description>Thank you for the mention, Don. I&#8217;m happy that my tutorials helped you. Nice work!

Jorge
MiamiCoder.com</description>
      <content:encoded><![CDATA[<p>Thank you for the mention, Don. I&#8217;m happy that my tutorials helped you. Nice work!</p>

<p>Jorge<br />
MiamiCoder.com</p>]]></content:encoded>
      <pubDate>Wed, 19 Sep 2012 01:57 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32235#date:01:57</guid>
    </item>
  
		<item>
      <title>Comment by Kazuhiro Kotsutsumi</title>
      <description>I translated it into Japanese.

http://www.xenophy.com/javascript/3577

Provision: Japan Sencha User Group
http://www.meetup.com/Japan&#45;Sencha&#45;User&#45;Group/about/</description>
      <content:encoded><![CDATA[<p>I translated it into Japanese.</p>

<p><a href="http://www.xenophy.com/javascript/3577">http://www.xenophy.com/javascript/3577</a></p>

<p>Provision: Japan Sencha User Group<br />
<a href="http://www.meetup.com/Japan-Sencha-User-Group/about/">http://www.meetup.com/Japan-Sencha-User-Group/about/</a></p>]]></content:encoded>
      <pubDate>Wed, 19 Sep 2012 01:35 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32234#date:01:35</guid>
    </item>
  
		<item>
      <title>Comment by Don Robins</title>
      <description>Sorry for messy code formatting; the indentation of comments should show lined up with the associated logic. Please take care when you copy the code to properly indent the comments and code blocks together for maximum readability.</description>
      <content:encoded><![CDATA[<p>Sorry for messy code formatting; the indentation of comments should show lined up with the associated logic. Please take care when you copy the code to properly indent the comments and code blocks together for maximum readability.</p>]]></content:encoded>
      <pubDate>Tue, 18 Sep 2012 01:42 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32232#date:01:42</guid>
    </item>
  
		<item>
      <title>Comment by Kazuhiro Kotsutsumi</title>
      <description>... which I do my best and translate
Extremely long.</description>
      <content:encoded><![CDATA[<p>... which I do my best and translate<br />
Extremely long.</p>

]]></content:encoded>
      <pubDate>Mon, 17 Sep 2012 18:34 GMT</pubDate>
      <guid isPermaLink="false">http://www.sencha.com/blog//developing-mobile-applications-with-force.com-and-sencha-touch-part-2#id:32229#date:18:34</guid>
    </item>
  
		
	</channel>
</rss>