Académique Documents
Professionnel Documents
Culture Documents
Speakers
Sandeep Bhanot
Mobile Geek (both kinds) @cloudysan
Safe Harbor
Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include but are not limited to risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling nonsalesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended July 31, 2012. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our W eb site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Introducing Salesforce1
All your past investments... All Your Apps All Your CRM All Your Customizations
Visualforce in Salesforce1
Where can I use it? How do I use it? How can I make it better?
Visualforce in Salesforce1
Where can I use it? How do I use it? How can I make it better?
Visualforce in Salesforce1
Things to remember
<apex:page docType="html-5.0" > Available for Salesforce Mobile apps flag enabled VF page needs to the extend Standard Controller in order to use in the Page Layout, Mobile Cards or Publisher Actions
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
Salesforce1 cannot automagically (yes, its a word) make Visualforce pages mobileoptimized
<apex:page standardStylesheets="false"> Use Responsive Design principles (same as the Salesforce1 app)
www.developerforce.com/mobile/services/mobile-templates
Custom Bootstrap fork that works with default Visualforce styling (Community developed) http://bit.ly/VisualStrap
http://coenraets.org/blog/2014/02/sample-force-com-mobileapplication-with-ionic-and-angularjs/
http://coenraets.org/blog/2014/03/building-mobile-apps-forsalesforce-com-with-ratchet-2-0/
http://www.developerforce.com/mobile/gettingstarted/html5/#jquery
<apex:pageBlock> <apex:pageBlockButtons> <apex:pageBlockSection> <apex:pageBlockSectionItem> <apex:pageBlockTable> <apex:inlineEditSupport> <apex:detail> <apex:inputField>** <apex:enhancedList> <apex:listViews> <apex:relatedList> <chatter:*> <liveagent:*>
Note: Representative sample only. This is not a comprehensive list
Not Supported
http://sfdc-styleguide.herokuapp.com/
Dos
Responsive design Standard HTML markup and custom CSS
Less is more Use Mobile Context (e.g. camera, geolocation)
Donts
Desktop optimized design Standard VF structure tags and CSS
Support every bell and whistle Recreate desktop functionality
Optimized for touch (e.g. larger tap areas, HTML5 form inputs)
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
Avoid ViewState (no <apex:form>) Favor Single Page apps (full page rendering is expensive on mobile) Consider JavaScript MV* Frameworks like AngularJS, Backbone etc. to provide structure
Invoke Apex Controller/Extension methods from JavaScript Avoids ViewState (better performance) Stateless business logic Front-end heavy (i.e. JavaScript) development
http://www.developerforce.com/mobile/services/mobile-packs
Donts
<apex:form> <apex:form> <apex:inputField> <apex:inputField> Multi-page apps No JavaScript Framework Server-side state & synchronous
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
External links (e.g. <a href=www.test.com>) will open in a new child browser
Internal links will open in current window
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
But my Visualforce page has to work in Salesforce1 (phone & tablet) AND Desktop
Recommended approach
http://blogs.developerforce.com/developer-relations/2012/05/cross-device-html5-apps-using-visualforce.html
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
HOWEVER.
Geolocation API (check the Saleforce1 Dev Guide for an example) <input type="file" accept="image/*"/> (for Camera access)
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
The 3 most important things about developing mobile web pages Performance, Performance, Performance.
Insert/update the DOM in bulk to avoid browser reflows (e.g. insert an entire <ul> section instead of individual <li> elements) JavaScript Use lightweight JavaScript libraries like Zepto.js instead of JQuery Move your <script> statements to the end of the Visualforce page
Visualforce in Salesforce1
Where can I use it? How do I use it?
UI/UX Business Logic & Data Binding Navigation Supporting multiple form factors Device Access
http://yourinstance.salesforce.com/one/one.app
Use standard web debugging tools like Chrome Dev. Tools and Firebug
http://yourinstance.salesforce.com/one/one.app