SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Alerts!
Creating alerts using the SP 2010 UI
Improvements, custom WCF services
and jQuery
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Session Breakdown
 Introduction (Brief)
  There a couple of things I “prepared earlier” … a brief explanation

 WCF
  Building a custom WCF service for SharePoint 2010
  The focus will not be what the service does but how to wire it up

 jQuery
  Instead of using the ASP.NET Ajax / Script Manager lets talk to the WCF
  service with jQuery

 SharePoint 2010 UI Utilities – Status Bar, Modal Dialog and Notifications
  The UI glue to show the information to users
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Introduction
 The Alert architecture
      A SharePoint List – the alert storage
      A custom WCF Service – the basic business objects / logic and
       communication mechanism
      jQuery – asynchronous data retrieval (on the client)
      SP.UI.Status – the presentation layer
WCF
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




WCF
 Can build SOAP, REST or Data Services
 Supports dynamic configuration using factories. SharePoint 2010
  provides 3 factories:

 Service Type                      Service Factory                       Description
 SOAP service                      MultipleBaseAddressBasicHttpBindingS Basic HTTP binding must be used,
                                   erviceHostFactory                    which creates endpoints for a service
                                                                        based on the basic HTTP binding.
 REST Service                      MultipleBaseAddressWebServiceHostF    The service factory creates endpoints
                                   actory                                with Web bindings.
 ADO.NET Data Service              MultipleBaseAddressDataServiceHostF   A data service host factory can be used.
                                   actory
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Custom WCF Service in SharePoint 2010
 Can’t be deployed by a sandbox solution

 WCF isn’t 100% supported in SharePoint project templates
    Create a separate WCF Service Library and copy the files into the SharePoint
     project
    Add references to System.ServiceModel and System.Runtime.Serialization
    The service declaration (.svc) needs to be added to list of files processed for
     replaceable tokens
     http://msdn.microsoft.com/en-us/library/ee231545.aspx

 Create Alert class that represents our alerts for serialization/data
  transfer
      Alert { Title, Description, Link, Colour }
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Custom WCF Service in SharePoint 2010
 Make the service ASP.NET compatible
    using System.ServiceModel.Activation

     [AspNetCompatibilityRequirements(RequirementsMode =
     AspNetCompatibilityRequirementsMode.Required)]

 Make the service REST capable
    using System.ServiceModel.Web

     [WebGet(UriTemplate = "/Alert", BodyStyle = WebMessageBodyStyle.Bare,
     ResponseFormat = WebMessageFormat.Json)]

 Using MultipleBaseAddressWebServiceHostFactory because its a REST
  service (sort of)
DEMO: Custom WCF Build
jQuery
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




jQuery
 We could use ASP.NET AJAX but … we won’t


 We will use jQuery to call our WCF web service
      jQuery has built in support for ajax and JSON

       jQuery.ajax()
       jQuery.getJSON()
User Interface Utilities – SP.UI
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




The OOTB UI Improvements in 2010
 SP.UI.Notify
      addNotification(), Notify(), removeNotification()


 SP.UI.Status
      addStatus(), appendStatus(), removeAllStatus(), removeStatus(),
       setStatusPriColor(), Status(), updateStatus()


 SP.UI.ModalDialog.showModalDialog(options)
      options is a JavaScript literal of the properties to pass this method
     e.g. var options = { url: “http://sharepoint.com” }
DEMO: How to use jQuery and SP.UI
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Resources
 WCF Services in SharePoint Foundation 2010
  http://msdn.microsoft.com/en-us/library/ff521586.aspx


 Creating a Custom WCF Service in SharePoint Foundation
  http://msdn.microsoft.com/en-us/library/ff521581.aspx

 jQuery ajax and JSON
  http://api.jquery.com/jQuery.ajax/
  http://api.jquery.com/jQuery.getJSON/
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Resources
 SP.UI.Notify
  http://msdn.microsoft.com/en-us/library/ff408137.aspx

 SP.UI.Status
  http://msdn.microsoft.com/en-us/library/ff412058.aspx

 SP.UI.ModalDialog
  http://msdn.microsoft.com/en-us/library/ff408909.aspx
  http://msdn.microsoft.com/en-us/library/ff411351.aspx

 Enabling Intellisense in Visual Studio
  http://msdn.microsoft.com/en-us/library/ff798328.aspx
SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar




Nick Hadlee
SharePoint Consultant at Intergen

Blog:    nickhadlee.wordpress.com
Twitter: @nickhadlee
Questions
Thank you to our Sponsors




M S C O M M U N IT IE S

Contenu connexe

Tendances

Chris givens building custom service applications
Chris givens building custom service applicationsChris givens building custom service applications
Chris givens building custom service applications
Chris Givens
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
Ivan Sanders
 
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
AX2012 Technical Track -  Entreprise portal, Czesia LangoswkaAX2012 Technical Track -  Entreprise portal, Czesia Langoswka
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
dynamicscom
 
WKDNUG SP2010 Development Presentation
WKDNUG SP2010 Development PresentationWKDNUG SP2010 Development Presentation
WKDNUG SP2010 Development Presentation
Rob Wilson
 
Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013
Ivan Sanders
 

Tendances (20)

Presentazione Sharepoint 2010
Presentazione Sharepoint 2010Presentazione Sharepoint 2010
Presentazione Sharepoint 2010
 
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content ManagementSharePoint Connections Coast to Coast Overview of Enterprise Content Management
SharePoint Connections Coast to Coast Overview of Enterprise Content Management
 
Jordan Remix - SharePoint 2010
Jordan Remix - SharePoint 2010Jordan Remix - SharePoint 2010
Jordan Remix - SharePoint 2010
 
3 lists, libraries, share point designer, business intelligence
3   lists, libraries, share point designer, business intelligence3   lists, libraries, share point designer, business intelligence
3 lists, libraries, share point designer, business intelligence
 
Configuring SharePoint 2013 for BI scenarios
Configuring SharePoint 2013 for BI scenariosConfiguring SharePoint 2013 for BI scenarios
Configuring SharePoint 2013 for BI scenarios
 
SharePoint Connections Coast to Coast Business Intelligence Solutions with Sh...
SharePoint Connections Coast to Coast Business Intelligence Solutions with Sh...SharePoint Connections Coast to Coast Business Intelligence Solutions with Sh...
SharePoint Connections Coast to Coast Business Intelligence Solutions with Sh...
 
Introduction to JSLink in 2013
Introduction to JSLink in 2013Introduction to JSLink in 2013
Introduction to JSLink in 2013
 
Chris givens building custom service applications
Chris givens building custom service applicationsChris givens building custom service applications
Chris givens building custom service applications
 
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010SharePoint Saturday Sacramento  Business Intelligence with SharePoint 2010
SharePoint Saturday Sacramento Business Intelligence with SharePoint 2010
 
1.2 introduction
1.2   introduction 1.2   introduction
1.2 introduction
 
SharePoint 2010 as a Development Platform, Ayman El-Hattab MVP
SharePoint 2010 as a Development Platform, Ayman El-Hattab MVPSharePoint 2010 as a Development Platform, Ayman El-Hattab MVP
SharePoint 2010 as a Development Platform, Ayman El-Hattab MVP
 
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
AX2012 Technical Track -  Entreprise portal, Czesia LangoswkaAX2012 Technical Track -  Entreprise portal, Czesia Langoswka
AX2012 Technical Track - Entreprise portal, Czesia Langoswka
 
Sharepoint2
Sharepoint2Sharepoint2
Sharepoint2
 
WKDNUG SP2010 Development Presentation
WKDNUG SP2010 Development PresentationWKDNUG SP2010 Development Presentation
WKDNUG SP2010 Development Presentation
 
Ax 2012 enterprise portal development
Ax 2012 enterprise portal developmentAx 2012 enterprise portal development
Ax 2012 enterprise portal development
 
Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013Practical businerss intelligence in share point 2013
Practical businerss intelligence in share point 2013
 
Configuração de um Portal Sharepoint 2007 e Funcionalidades de Apoio
Configuração de um Portal Sharepoint 2007 e Funcionalidades de ApoioConfiguração de um Portal Sharepoint 2007 e Funcionalidades de Apoio
Configuração de um Portal Sharepoint 2007 e Funcionalidades de Apoio
 
SharePoint 2013 Sneak Peek
SharePoint 2013 Sneak PeekSharePoint 2013 Sneak Peek
SharePoint 2013 Sneak Peek
 
SharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business IntelligenceSharePoint Saturday NYC - Business Intelligence
SharePoint Saturday NYC - Business Intelligence
 
KPI Roll-Up In SharePoint 2007
KPI Roll-Up In SharePoint 2007KPI Roll-Up In SharePoint 2007
KPI Roll-Up In SharePoint 2007
 

Similaire à SharePoint Alerts with WCF and jQuery

Building+restful+webservice
Building+restful+webserviceBuilding+restful+webservice
Building+restful+webservice
lonegunman
 
WCF Data Services - Bandung Charity Event - 2010
WCF Data Services  - Bandung Charity Event - 2010WCF Data Services  - Bandung Charity Event - 2010
WCF Data Services - Bandung Charity Event - 2010
Andri Yadi
 
Parallelminds.asp.net web service
Parallelminds.asp.net web serviceParallelminds.asp.net web service
Parallelminds.asp.net web service
parallelminder
 
Session 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarterSession 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarter
Mithun T. Dhar
 
Integration of Web Service Stacks in an Esb
Integration of Web Service Stacks in an EsbIntegration of Web Service Stacks in an Esb
Integration of Web Service Stacks in an Esb
Wen Zhu
 
Novidades Do Asp.Net 4 E Do Visual Studio 2010
Novidades Do Asp.Net 4 E Do Visual Studio 2010Novidades Do Asp.Net 4 E Do Visual Studio 2010
Novidades Do Asp.Net 4 E Do Visual Studio 2010
Rodrigo Kono
 
Web service through cxf
Web service through cxfWeb service through cxf
Web service through cxf
Roger Xia
 
WCF LOB SDK from CodeMastery
WCF LOB SDK from CodeMasteryWCF LOB SDK from CodeMastery
WCF LOB SDK from CodeMastery
clineer
 
SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010
Michael Noel
 

Similaire à SharePoint Alerts with WCF and jQuery (20)

Building+restful+webservice
Building+restful+webserviceBuilding+restful+webservice
Building+restful+webservice
 
Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0Building RESTful Services with WCF 4.0
Building RESTful Services with WCF 4.0
 
WCF Data Services - Bandung Charity Event - 2010
WCF Data Services  - Bandung Charity Event - 2010WCF Data Services  - Bandung Charity Event - 2010
WCF Data Services - Bandung Charity Event - 2010
 
Web API or WCF - An Architectural Comparison
Web API or WCF - An Architectural ComparisonWeb API or WCF - An Architectural Comparison
Web API or WCF - An Architectural Comparison
 
Parallelminds.asp.net web service
Parallelminds.asp.net web serviceParallelminds.asp.net web service
Parallelminds.asp.net web service
 
ADO.NET Data Services
ADO.NET Data ServicesADO.NET Data Services
ADO.NET Data Services
 
Jax ws
Jax wsJax ws
Jax ws
 
Session 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarterSession 7 - Integrating share point with silverlight firestarter
Session 7 - Integrating share point with silverlight firestarter
 
Wcf remaining
Wcf remainingWcf remaining
Wcf remaining
 
Integration of Web Service Stacks in an Esb
Integration of Web Service Stacks in an EsbIntegration of Web Service Stacks in an Esb
Integration of Web Service Stacks in an Esb
 
Reusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11gReusing Existing Java EE Applications from SOA Suite 11g
Reusing Existing Java EE Applications from SOA Suite 11g
 
Novidades Do Asp.Net 4 E Do Visual Studio 2010
Novidades Do Asp.Net 4 E Do Visual Studio 2010Novidades Do Asp.Net 4 E Do Visual Studio 2010
Novidades Do Asp.Net 4 E Do Visual Studio 2010
 
Oracle JET and WebSocket
Oracle JET and WebSocketOracle JET and WebSocket
Oracle JET and WebSocket
 
Spsdc what's new in share point 2013 workflow
Spsdc   what's new in share point 2013 workflowSpsdc   what's new in share point 2013 workflow
Spsdc what's new in share point 2013 workflow
 
Web service through cxf
Web service through cxfWeb service through cxf
Web service through cxf
 
Usability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET FeaturesUsability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET Features
 
Web API with ASP.NET MVC by Software development company in india
Web API with ASP.NET  MVC  by Software development company in indiaWeb API with ASP.NET  MVC  by Software development company in india
Web API with ASP.NET MVC by Software development company in india
 
HTTP Whiteboard - OSGI Compendium 6.0 - How web apps should have been! - R Auge
HTTP Whiteboard - OSGI Compendium 6.0 - How web apps should have been! - R AugeHTTP Whiteboard - OSGI Compendium 6.0 - How web apps should have been! - R Auge
HTTP Whiteboard - OSGI Compendium 6.0 - How web apps should have been! - R Auge
 
WCF LOB SDK from CodeMastery
WCF LOB SDK from CodeMasteryWCF LOB SDK from CodeMastery
WCF LOB SDK from CodeMastery
 
SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010SharePoint 2010 Architecture - TechEd Brasil 2010
SharePoint 2010 Architecture - TechEd Brasil 2010
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

SharePoint Alerts with WCF and jQuery

  • 1. Alerts! Creating alerts using the SP 2010 UI Improvements, custom WCF services and jQuery
  • 2. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar
  • 3. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Session Breakdown  Introduction (Brief) There a couple of things I “prepared earlier” … a brief explanation  WCF Building a custom WCF service for SharePoint 2010 The focus will not be what the service does but how to wire it up  jQuery Instead of using the ASP.NET Ajax / Script Manager lets talk to the WCF service with jQuery  SharePoint 2010 UI Utilities – Status Bar, Modal Dialog and Notifications The UI glue to show the information to users
  • 4. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Introduction  The Alert architecture  A SharePoint List – the alert storage  A custom WCF Service – the basic business objects / logic and communication mechanism  jQuery – asynchronous data retrieval (on the client)  SP.UI.Status – the presentation layer
  • 5. WCF
  • 6. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar WCF  Can build SOAP, REST or Data Services  Supports dynamic configuration using factories. SharePoint 2010 provides 3 factories: Service Type Service Factory Description SOAP service MultipleBaseAddressBasicHttpBindingS Basic HTTP binding must be used, erviceHostFactory which creates endpoints for a service based on the basic HTTP binding. REST Service MultipleBaseAddressWebServiceHostF The service factory creates endpoints actory with Web bindings. ADO.NET Data Service MultipleBaseAddressDataServiceHostF A data service host factory can be used. actory
  • 7. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Custom WCF Service in SharePoint 2010  Can’t be deployed by a sandbox solution  WCF isn’t 100% supported in SharePoint project templates  Create a separate WCF Service Library and copy the files into the SharePoint project  Add references to System.ServiceModel and System.Runtime.Serialization  The service declaration (.svc) needs to be added to list of files processed for replaceable tokens http://msdn.microsoft.com/en-us/library/ee231545.aspx  Create Alert class that represents our alerts for serialization/data transfer  Alert { Title, Description, Link, Colour }
  • 8. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Custom WCF Service in SharePoint 2010  Make the service ASP.NET compatible  using System.ServiceModel.Activation [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]  Make the service REST capable  using System.ServiceModel.Web [WebGet(UriTemplate = "/Alert", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]  Using MultipleBaseAddressWebServiceHostFactory because its a REST service (sort of)
  • 11. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar jQuery  We could use ASP.NET AJAX but … we won’t  We will use jQuery to call our WCF web service  jQuery has built in support for ajax and JSON jQuery.ajax() jQuery.getJSON()
  • 13. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar The OOTB UI Improvements in 2010  SP.UI.Notify  addNotification(), Notify(), removeNotification()  SP.UI.Status  addStatus(), appendStatus(), removeAllStatus(), removeStatus(), setStatusPriColor(), Status(), updateStatus()  SP.UI.ModalDialog.showModalDialog(options)  options is a JavaScript literal of the properties to pass this method e.g. var options = { url: “http://sharepoint.com” }
  • 14. DEMO: How to use jQuery and SP.UI
  • 15. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Resources  WCF Services in SharePoint Foundation 2010 http://msdn.microsoft.com/en-us/library/ff521586.aspx  Creating a Custom WCF Service in SharePoint Foundation http://msdn.microsoft.com/en-us/library/ff521581.aspx  jQuery ajax and JSON http://api.jquery.com/jQuery.ajax/ http://api.jquery.com/jQuery.getJSON/
  • 16. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Resources  SP.UI.Notify http://msdn.microsoft.com/en-us/library/ff408137.aspx  SP.UI.Status http://msdn.microsoft.com/en-us/library/ff412058.aspx  SP.UI.ModalDialog http://msdn.microsoft.com/en-us/library/ff408909.aspx http://msdn.microsoft.com/en-us/library/ff411351.aspx  Enabling Intellisense in Visual Studio http://msdn.microsoft.com/en-us/library/ff798328.aspx
  • 17. SharePoint Saturday New Zealand – WCF, jQuery and the SP Status Bar Nick Hadlee SharePoint Consultant at Intergen Blog: nickhadlee.wordpress.com Twitter: @nickhadlee
  • 19. Thank you to our Sponsors M S C O M M U N IT IE S