33
Innovation for Sustainability with Force.com Sites, Ideas & Custom Cloud Developers John Wilbanks: Creative Commons Randy Case: salesforce.com Skip Roncal: salesforce.com

Collaborative Innovation for Sustainability

Embed Size (px)

DESCRIPTION

Leading corporations are creating online communities to connect, collaborate, and change the world. Join us as we track how one community, Nike's GreenXchange, successfully went from concept to prototype to launch. Find out how you can do the same! We'll show how to build an object model to support video, drive search and discovery, integrate with third-party sites, and create a stylized Web site using Force.com pages (Visualforce). You'll leave with the inspiration and tools you need to create your own idea exchange with Salesforce.

Citation preview

Page 1: Collaborative Innovation for Sustainability

Innovation for Sustainability with Force.com Sites, Ideas & Custom Cloud

Developers

John Wilbanks: Creative CommonsRandy Case: salesforce.comSkip Roncal: salesforce.com

Page 2: Collaborative Innovation for Sustainability

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 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, 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 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 ended January 31, 2010. This documents and others 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 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 3: Collaborative Innovation for Sustainability

Agenda Slide – what will people learn??

Greenxchange Collaboration Requirements & Vision

Developing Unique– Search and Discovery thru Tag Cloud

– Branding and Interactive User Interface Elements

– Capturing ‘Interest’ and Generating Workflow

Enabling Authenticated Portal

Using Ideas and Integrating with 3rd Party Networks

Page 4: Collaborative Innovation for Sustainability

John Wilbanks

Creative Commons

Page 5: Collaborative Innovation for Sustainability

Creative Commons

Creative Commons is a nonprofit corporation dedicated to making it easier for people to share and build upon the work of others, consistent with the rules of copyright.

We provide free licenses and other legal tools to mark creative work with the freedom the creator wants it to carry, so others can share, remix, use commercially, or any combination thereof.

Page 6: Collaborative Innovation for Sustainability

GreenXchange Vision

Page 7: Collaborative Innovation for Sustainability

GreenXchange Functional Requirements

GX Application Goals– Publish Patents

– Patent Licensing Methods

– Tag Patents for Discovery

– Search Patents

– Support Video

– Third Party Network Integration (Ideas)

– Branding

– Enable Sign-up and Workflow

Page 8: Collaborative Innovation for Sustainability

Randy Case

salesforce.com

Page 9: Collaborative Innovation for Sustainability

Technical Requirements

Non-authenticated web site– Patent search

– Tag cloud

– Hover description

– Branded

– Capture interest

– Access to Authenticated portal

Authenticated Portal– Form to express interest with patent owner

Page 10: Collaborative Innovation for Sustainability

Data Model

Page 11: Collaborative Innovation for Sustainability

Approach: Tag Cloud

Patent

Custom Object: Tag_Count__c

VF Page

Apex Trigger

Page 12: Collaborative Innovation for Sustainability

Design: Tag Cloud

Design Steps

1. Create tag count table

2. Create Apex trigger on Patent create/update

a. Build list of words in an LIST (old and new)

b. Query for list of words from tag count table in a MAP

c. Loop though list of words incrementing and adding words when

necessary

d. Updating words in the tag count table

e. Deleting zero count words

Page 13: Collaborative Innovation for Sustainability

Design: Tag CloudStep 1– Make a list of all the words

Segment your code and logic

“Bulkify” your trigger

Trigger

For updates, need to

subtract from the “old”

keywords

Page 14: Collaborative Innovation for Sustainability

Design: Tag CloudStep 2 – Make MAP of all the words

Read all words at once to avoid governor limits

Trigger

Word Tag_Count__cMAP

Key Value

Page 15: Collaborative Innovation for Sustainability

Design: Tag CloudStep 3 – Increment / decrement words

If word not found, then add word to

MAP

Trigger

Page 16: Collaborative Innovation for Sustainability

Design: Tag CloudStep 4 – Save the word list

Trigger

Delete any words with zero count

Page 17: Collaborative Innovation for Sustainability

Approach: Hover Description

Page 18: Collaborative Innovation for Sustainability

Design: Hover Description

Design Steps

1. Create form/html to display abstract

2. Create JavaScript to• Expose form

• Submit form

3. JavaScript to hide form

Page 19: Collaborative Innovation for Sustainability

Design: Hover Description

Form is hidden from view

Hidden field for patent ID and

button to submit form

Page 20: Collaborative Innovation for Sustainability

Design: Hover Description

Call JS from VF page passing ID

Set hidden var on hidden form and click the submit button on form

Page 21: Collaborative Innovation for Sustainability

Approach: Patent Portal

Page 22: Collaborative Innovation for Sustainability

Approach: Patent Portal

Page 23: Collaborative Innovation for Sustainability

Approach: Patent PortalForce.com Sites

SitesGuest User

UserLogs In

Browser has authentication token for Force.com

Page 24: Collaborative Innovation for Sustainability

Design: Patent Portal – Login

Page 25: Collaborative Innovation for Sustainability

Design : Patent Portal – Rendering Portal Link

Page 26: Collaborative Innovation for Sustainability

Design: Patent Portal – Self Registration

Page 27: Collaborative Innovation for Sustainability

Design: Patent Portal – Self Registration

Define portal user in Force.com

Use intrinsic classes to define

portal user and then log them on

Page 28: Collaborative Innovation for Sustainability

It’s easy to build a full branded consumer portal

It’s easy to build a full branded authenticated portal

It’s even easier to provide a seamless experience between the two!

Segment your code for re-use and readability

Beware of governor limits

Key Take Aways

Page 29: Collaborative Innovation for Sustainability

John Wilbanks

VP Science

Randy Case

Platform Architect

Skip Roncal

Platform Solutions Director

Question & Answer

Page 30: Collaborative Innovation for Sustainability

Innovation for Sustainability with Force.com Sites, Ideas & Custom

Cloud Apps

Page 31: Collaborative Innovation for Sustainability

D I S C O V E R

Visit the Developer Training and Support Booth in Force.com Zone

Discover

Developer

Learning Paths

Developer training, certification and support resources

S U C C E S SFind us in the Partner Demo Area of

Force.com Zone 2nd Floor Moscone West

that help you achieve

Learn about Developer

Certifications

Page 32: Collaborative Innovation for Sustainability

Remember. . .

Check Chatter for additional session information

Get your developer Workbooks and Cheat Sheets in

the Force.com Zone

Visit for more information related

to this topicDon’t forget the survey!

Page 33: Collaborative Innovation for Sustainability

How Could Dreamforce Be Better? Tell Us!

Log in to the Dreamforce app to submit

surveys for the sessions you attendedUse the

Dreamforce Mobile app to submit

surveysEvery session survey you submit is

a chance to win an iPod nano!

OR