Using Promise Patterns with JavaScript, jQuery, and the SharePoint 2013 App Model Doug Hemminger SharePoint Solutions Architect, Protiviti.

Slides:



Advertisements
Similar presentations
Bob German Principal Architect Introduction to Cloud Hosted Apps Your apps here!
Advertisements

@jerry_yasir SharePoint IIS Code runs from GAC on same w3wp.exe as SharePoint web application 2010 SharePoint IIS Sand box Code runs on SPUCWorkerProcess.exe.
Getting Started with SharePoint 2013 Apps
A Developer’s Introduction to SharePoint 2013 Apps Ryan McIntyre, MCITP, MCPD National Architect Neudesic Ryan McIntyre, MCITP, MCPD National Architect.
App for SharePoint (*.app) Widgets Dashboards Data roll ups.
SharePoint-hostedAutohostedProvider-hosted All components are deployed to SharePoint Only the wrapper for the app is deployed to SharePoint Separate.
Microsoft SharePoint 2013 SharePoint 2013 as a Developer Platform
Silver SponsorsGold Sponsors Bronze Sponsors SharePoint App Model Redefine your SharePoint Customisation Erwin Tsai SharePoint Solution Architect Techfly.
Microsoft ® Official Course Developing Remote-hosted Apps for SharePoint Microsoft SharePoint 2013 SharePoint Practice.
Microsoft ® Official Course Introducing Apps for SharePoint SharePoint Practice Microsoft SharePoint 2013.
BCS uncovering the misteries Marat Bakirov Australia, UTC+10 April 16 th /17 th, 2014.
Fraser Technical Solutions, LLC
Any host All components deployed to SharePoint Client side code App Web created for app Wrapper deployed to SharePoint Components deployed to.
SharePoint-Hosted App Provision an isolated sub web on a parent web (separate domain) Reuse web elements (lists, files, out-of-box web parts) No.
Basic SharePoint 2013 App Development start-up for New Developers
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 15 Technical Preview and published July Thierry Gasser TSP
©2012 Microsoft Corporation. All rights reserved. Content based on SharePoint 2013 Technical Preview and published July Introducing.
App development in SharePoint 2013 LIVE Introducing Cloud App Model Cloud-hosted Apps Experiences from the Field.
Any device, anywhere, anytime New discovery channels New ways of working Redefined expectations for apps.
SPC204 Security Problems in SharePoint 2010 Authentication and Authorization.
Office 365 Platform Flexible Tools App Manifest Web Page HTML/CSS/JS App.
App Manifest Web Application (HTML, CSS, JS, …) APP.
Marat Bakirov Readify. 2 3 ServerClient Browser Host Web Server Host SharePoint & Exchange Office APP Client APIs Server APIs.
Building Dynamic Applications on both Office 365 and on-premise.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Refine Author business logic Customize screen layouts / branding Define custom queries Extend Explore ecosystem components Create custom controls.
Apps where your users are Sign into SharePoint and launch apps Modern experiences on breadth of devices Central app management Central user.
The Evolution of SharePoint Event May 21 st, 2014 Timothy Ferro.
How to build an App Deep dive into the capabilities of Apps Lessons learned.
23/04/2017 Desarrollando una integración entre Azure Websites y SharePoint Online de Office 365.
Windows 8 Application Microsoft Word with Apps For Office Internal O365 SharePoint Site Windows Azure Cloud Services Windows Azure Workflow Server.
Enabling Developers with Development Features Presented by: Ricardo Wilkins SharePoint Solutions Architect.
App Manifest Web Page HTML/CSS/JS APP SharePoint App Web SharePoint Host Web Windows Azure Websites SharePoint Host Web Your hosted site SharePoint.
Cloud SharePoint-hosted SharePoint Autohosted Provider-hosted Host web App web (optional) Host web App web Host web App web (optional)
Ready for what’s next. The Evolution of SharePoint Event Receivers SharePoint Saturday DC: Reston December 7 th, 2013 Timothy Ferro.
TRANSITIONING FULL TRUST CODE TO CLIENT APIS Architecting SharePoint For The Future Chris Domino December 10, 2015.
Windows 8 Application Microsoft Word with an app for Office Internal O365 SharePoint Site Windows Azure Web Sites Windows Azure Workflow Service.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
| Lausanne Become an Office 365 developer in 60 min Valerie Alonso Xavier Bocken.
Inspirirani ljudima. Ugasite mobitele. Hvala.. Paolo Pialorsi Senior Consultant PiaSys ( Publishing apps for SharePoint 2013 on Microsoft.
Wes Hackett Principal Solutions Architect Chris O’Brien Head of Development.
Bob German Principal Architect Future-Proof your SharePoint Customizations: Build 2010 Solutions that become 2013 Apps.
Bob German Principal Architect Developing SharePoint Applications with MVC and Entity Framework.
Trimantra Software Solution Offshore Software Development Outsourcing Company Visit :
2012 © Trivadis BASEL BERN LAUSANNE ZÜRICH DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. HAMBURG MÜNCHEN STUTTGART WIEN WELCOME The SharePoint 2013 App Model.
Apps for the modern enterprise INTRODUCTION TO SHAREPOINT AS A DEVELOPMENT PLATFORM RON COURVILLE.
A Developer’s Introduction to SharePoint 2013 Apps Ryan McIntyre, MCITP, MCPD National
Converting SharePoint on- premise Apps to Office 365 Jos Auker-Woor M377.
BRANDING YOURSELF FINAL DRAFT.
Office 365 Development July 2014.
Stop Those Prying Eyes Getting to Your Data
Microsoft List Schedule April – May 2016
World Wide Web policy.
What's new in the world of SharePoint development and deployment
Introduction to Redux Header Eric W. Greene Microsoft Virtual Academy
SPFx – A modern development tool for SharePoint
SharePoint Cloud hosted Apps
SharePoint-Hosted Apps and JavaScript
AngularJS and SharePoint Chris Douglas Senior SharePoint Developer InfoReliance Web: Twitter:
Rich single page applications with SharePoint
Windows Azure Keenan Newton 3-021
SharePoint Online Authentication Patterns
Agenda OAuth Concepts Programming OAuth.
Moving Your Customizations to the cloud
Hooking into Apps for SharePoint
AngularJS and SharePoint I Chris Douglas Senior SharePoint Developer ECS Web:
SharePoint Online Authentication Patterns
Getting Started with SP2013 Apps
Western Mass Microsoft Technology Users Group
Presentation transcript:

Using Promise Patterns with JavaScript, jQuery, and the SharePoint 2013 App Model Doug Hemminger SharePoint Solutions Architect, Protiviti

Agenda SharePoint 2013 App Primer JavaScript “Function” Primer Asynchronous Patterns in JavaScript

App Shapes

Terminology Host Web – A SharePoint website where the app is installed and surfaced to the user. App Web – An isolated SharePoint web site on the SharePoint app domain that hosts SharePoint components used in the app

Hosting Architectures SharePoint Hosted – App is hosted by SharePoint Provider Hosted – App is hosted on a dedicated server either on-premises or on a third party hosting service

SharePoint-hosted Apps Runs on an isolated app domain of the SharePoint farm Authorized using the privileges of the signed in user Can only use JavaScript and HTML- No server side code

Provider-hosted Apps Runs on a dedicated server or hosting service (not in SharePoint) Authorization is through OAuth or the JavaScript cross-domain library Can use any language supported by the web server or hosting service

JavaScript Functions Functions are Objects in JavaScript. Essentially they are strings of JavaScript code.

Asynchronous Patterns Callbacks Events Promises

Callbacks A callback is a function that is passed to another function as a parameter and somehow affects the flow of execution Functions are Objects in JavaScript

Callback

Promises A promise represents the eventual value returned from the single completion of an operation. Three states Unfullfilled Fulfilled Rejected

Promises In jQuery the Promise pattern can be used with $.when(object) where object is a deferred object or a promise

TitleUrl Choose patterns for developing and hosting your app for SharePoint us/library/office/fp179887(v=office.15).aspx Host webs, app webs, and SharePoint components in SharePoint us/library/office/fp179925(v=office.15).aspx Apps for Office and SharePoint Bloghttp://blogs.msdn.com/b/officeapps/ Showcase: Contoso Incubation Search Apphttp://msdn.microsoft.com/en-US/office/dn Asynchronous Programming in JavaScript with “Promises” chronous-programming-in-javascript-with- promises.aspx Promise Patternshttp://modernjavascript.blogspot.com/2013/09/prom ise-patterns.html Understand JavaScript callback functions and use them callback-functions-and-use-them/

TitleUrl Understanding Callbacks in JavaScripthttp://recurial.com/programming/understanding- callback-functions-in-javascript/