Upload
salesforce-developers
View
1.449
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Prepare to be entertained! Live music, the most exciting and memorable safe harbor slide EVER, and we'll give you a toolkit of tips and tricks to get the most out of Visualforce, without writing a line of Apex Code. Join us to learn how to delight your users with more useful, dynamic Visualforce pages using techniques such as JavaScript web components, Force.com Sites, and PDF output. You'll be surprised how much you can get done without reaching for Apex.
Citation preview
Pushing Visualforce to the LimitsWithout Apex
Joseph, Ucuzoglu, The Broad Center, Deputy Director of Information Systems
All about Session Goals / Agenda
Provide you with some useful takeaways and entertainment!
▪ Add/Delete VF fields within the declarative interface
▪ Creating tabbed object layouts with Visualforce
▪ Embed Visualforce pages into your website
My #1 Challenge, Help You Avoid this….
I may want to show you this
But your mind wants to know more about this…
No need to take notes!All code samples,the presentation, and more…
will be posted in Chatter
So relax and enjoy the show
Unfortunate Business of theSafe Harbor SlidePlease welcome my organization’s Operations Associate
Safe harborSafe 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 any litigation, risks associated with completed and any 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 non-salesforce.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-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web 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.
Special Guest Safe Harbor Slide VocalistXoichitl Flores
You ALWAYS need APEX to do really cool stuff…
That’s like saying *ALL* Safe Harbor slides are boring!
• Code Deployments
• Test Coverage
• Governor Limits
• Longer to Develop
• Difficulty
Use 1
Problem:We want to allow Administrators to add/delete fields from some VF pages without having to edit VF code.
Use 1
Solution:Use Fieldsets on our VF page and then add/remove fields via the field set within the declarative interface.
Why not just expect people to edit the VF code?
Adding a fieldset is easy> Select your object > Field Set (Beta) > New
In Practice
A very simple Visualforce page with a Field Set
Putting it all together
Create your Visualforce Pagehttp://www.salesforce.com/us/developer/docs/workbook_vf/workbook_vf.pdf
Working with Field Setshttp://www.salesforce.com/us/developer/docs/pages/Content/pages_dynamic_vf_field_sets.htm
Problem:The page layouts for objects are getting too long and unwieldy. It is becoming difficult / time consuming to find information.
Use 2
Use 2
Solution:Re-architect the layout within Visualforce utilizing tabs to present information concisely.
How did we get such large records?
We came to an understanding organization wide.
Bloated Contact Layout - Page 1
Bloated Contact Layout - Page 2
Bloated Contact Layout - Page 3
Bloated Contact Layout - Page 4
Bloated Contact Layout - Page 5
Bloated Contact Layout - Page 6
Bloated Contact Layout - Page 7
Bloated Contact Layout - Page 8
Bloated Contact Layout - Page 9
Bloated Contact Layout - Page 10
Bloated Contact Layout - Page 11!!!
Tabbed layout
Tab Panel / Detail SectionTab Panel Detail Section
Including Related ListsRelated List Apex Tab
Locating the List Value
Bonus Tip – Colored Active Tab
Putting it all together
Create your Visualforce Pagehttp://www.salesforce.com/us/developer/docs/workbook_vf/workbook_vf.pdf
Jeff Douglas Blog – Using Related Lists in Visualforce Pageshttp://blog.jeffdouglas.com/2009/05/13/using-related-lists-in-visualforce-pages/
Create tabbed pages in VisualForcehttp://wiki.developerforce.com/page/Tabbed_Accounts_in_30_seconds
Problem:We want to display/accept information from a custom object within our organizations website.
Use 3
Use 3
Solution:Create a Visualforce page and embed it into our website using a Sites page.
Step #1 – Create the Visual Force Page
Step #2 – Create the Sites Page
• Update Custom Object Permissions
• Adjust Field Level Security (Mark necessary fields as Visible)
The side by side comparison
Step #3 – Embed the page utilizing an iFrame
Putting it all together
Create your Visualforce Pagehttp://www.salesforce.com/us/developer/docs/workbook_vf/workbook_vf.pdf
Edit the Guest User Profile Permissionshttp://www.salesforce.com/us/developer/docs/workbook_siteforce/wb_siteforce.pdf
Create a Sites Pagehttp://wiki.developerforce.com/page/An_Introduction_to_Force.com_Sites
Quick RecapWhy Visualforce (without Apex)
Examples we explored▪ Add/Delete VF fields within the declarative interface▪ Creating tabbed object layouts with Visualforce▪ Embed Visualforce pages into your website
• Code Deployments
• Test Coverage
• Governor Limits
• Longer to Develop
• Difficulty
Create PDF documents from VF pages (Including auto page numbering)
Create Dynamic Tables in Visual Force in 3 steps
Additional Bonus Materials *not shown in the presentation*
Create PDF documents from PDF pages (Including auto page numbering)
Create Dynamic Tables in Visual Force in 3 steps
All Materials will be posted in the Session Chatter Feed
Use Fieldsets to Modify Fields on Visualforce pages
Consolidate Data Presentation With Tabbed Layouts
Collect data from a public website and record that information in Salesforce
Joseph Ucuzoglu
Deputy Director of Information Systems,The Broad Center
Xochitl Flores
Operations Associate,The Broad Center