48
Pushing Visualforce to the Limits Without Apex Joseph, Ucuzoglu, The Broad Center, Deputy Director of Information Systems

Pushing Visualforce to the Limits, Without Apex

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

Page 1: Pushing Visualforce to the Limits, Without Apex

Pushing Visualforce to the LimitsWithout Apex

Joseph, Ucuzoglu, The Broad Center, Deputy Director of Information Systems

Page 2: Pushing Visualforce to the Limits, Without Apex
Page 3: Pushing Visualforce to the Limits, Without Apex

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

Page 4: Pushing Visualforce to the Limits, Without Apex

My #1 Challenge, Help You Avoid this….

Page 5: Pushing Visualforce to the Limits, Without Apex

I may want to show you this

But your mind wants to know more about this…

Page 6: Pushing Visualforce to the Limits, Without Apex

No need to take notes!All code samples,the presentation, and more…

will be posted in Chatter

So relax and enjoy the show

Page 7: Pushing Visualforce to the Limits, Without Apex

Unfortunate Business of theSafe Harbor SlidePlease welcome my organization’s Operations Associate

Page 8: Pushing Visualforce to the Limits, Without Apex

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.

Page 9: Pushing Visualforce to the Limits, Without Apex

Special Guest Safe Harbor Slide VocalistXoichitl Flores

Page 10: Pushing Visualforce to the Limits, Without Apex

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

Page 11: Pushing Visualforce to the Limits, Without Apex

Use 1

Problem:We want to allow Administrators to add/delete fields from some VF pages without having to edit VF code.

Page 12: Pushing Visualforce to the Limits, Without Apex

Use 1

Solution:Use Fieldsets on our VF page and then add/remove fields via the field set within the declarative interface.

Page 13: Pushing Visualforce to the Limits, Without Apex

Why not just expect people to edit the VF code?

Page 14: Pushing Visualforce to the Limits, Without Apex

Adding a fieldset is easy> Select your object > Field Set (Beta) > New

Page 15: Pushing Visualforce to the Limits, Without Apex

In Practice

Page 16: Pushing Visualforce to the Limits, Without Apex

A very simple Visualforce page with a Field Set

Page 18: Pushing Visualforce to the Limits, Without Apex

Problem:The page layouts for objects are getting too long and unwieldy. It is becoming difficult / time consuming to find information.

Use 2

Page 19: Pushing Visualforce to the Limits, Without Apex

Use 2

Solution:Re-architect the layout within Visualforce utilizing tabs to present information concisely.

Page 20: Pushing Visualforce to the Limits, Without Apex

How did we get such large records?

We came to an understanding organization wide.

Page 21: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 1

Page 22: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 2

Page 23: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 3

Page 24: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 4

Page 25: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 5

Page 26: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 6

Page 27: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 7

Page 28: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 8

Page 29: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 9

Page 30: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 10

Page 31: Pushing Visualforce to the Limits, Without Apex

Bloated Contact Layout - Page 11!!!

Page 32: Pushing Visualforce to the Limits, Without Apex

Tabbed layout

Page 33: Pushing Visualforce to the Limits, Without Apex

Tab Panel / Detail SectionTab Panel Detail Section

Page 34: Pushing Visualforce to the Limits, Without Apex

Including Related ListsRelated List Apex Tab

Locating the List Value

Page 35: Pushing Visualforce to the Limits, Without Apex

Bonus Tip – Colored Active Tab

Page 36: Pushing Visualforce to the Limits, Without Apex

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

Page 37: Pushing Visualforce to the Limits, Without Apex

Problem:We want to display/accept information from a custom object within our organizations website.

Use 3

Page 38: Pushing Visualforce to the Limits, Without Apex

Use 3

Solution:Create a Visualforce page and embed it into our website using a Sites page.

Page 39: Pushing Visualforce to the Limits, Without Apex

Step #1 – Create the Visual Force Page

Page 40: Pushing Visualforce to the Limits, Without Apex

Step #2 – Create the Sites Page

• Update Custom Object Permissions

• Adjust Field Level Security (Mark necessary fields as Visible)

Page 41: Pushing Visualforce to the Limits, Without Apex

The side by side comparison

Page 42: Pushing Visualforce to the Limits, Without Apex

Step #3 – Embed the page utilizing an iFrame

Page 43: Pushing Visualforce to the Limits, Without Apex

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

Page 44: Pushing Visualforce to the Limits, Without Apex

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

Page 45: Pushing Visualforce to the Limits, Without Apex

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*

Page 46: Pushing Visualforce to the Limits, Without Apex

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

Page 47: Pushing Visualforce to the Limits, Without Apex

Joseph Ucuzoglu

Deputy Director of Information Systems,The Broad Center

Xochitl Flores

Operations Associate,The Broad Center

Page 48: Pushing Visualforce to the Limits, Without Apex