SlideShare a Scribd company logo
1 of 21
Marius Constantinescu
D03: Rapidly building data-driven
modern Office 365 Cloud Business
add-ins with LightSwitch HTML
28 mai 2016
#SPSParis @c_marius
Diamond
Platinum
Gold
Silver
Organizers
& Community
www.spsevents.org/city/Paris/
Paris2016
Keynote Speaker: Jeff Teper
Microsoft Corporate
Vice-President
SharePoint + OneDrive
Donation
Tombola / Raffle
After Jeff Teper’s Keynote Après la Keynote de Jeff Teper
2
4
2
1
4
4
3
 MVP Office Servers and Services
(previously on SharePoint & Office365)
 MC* > e.g. MCT, MCSE, MCITP, MCPD &
others I forgot
 Solutions Architect with a focus on ECM &
Collaboration, Enterprise Search,
integration solutions.
 Regional Leader of the Swiss SharePoint
Club (600+ members)
 Speaker at local/international events
(Swiss SPC, SPS-*, Tech-Days, Soft-Shake)
Ego me > Marius Constantinescu
Managing Consultant
blue-infinity
Geneva, Switzerland
@c_marius
c_marius@msn.com
ch.linkedin.com/mct365
What do we mean by “modern, cloud
business apps”?
BusinessUser
• Cross-devices –
on any device at
any time
• Responsive ,
adaptive Design,
touch ready
• “Cool”…
Architect
• Multi-tier
architecture
• Patterns & more
patterns (e.g.
MV*)
• Integration with
Line-Of -Business
• Infinite Scalability
• Modelling tools
for business
entities with rules
validation
UXSpecialist/Designer
• Fluent,
Ergonomic,
Minimalistic
design
• Clear interaction
flows, navigation
• Material Design
Developer
•Best IDE , syntax
highlighting,
intellisense
•Automatic
dependency
management, error
checking for
CSS/JavaScript,
•minification of
resources
•Complex Libraries/
Frameworks & more
(Knockout, Durango,
BreezeJS, AngularJS, )
•Databinding, Widgets,
Web Components, etc.
What is Visual Studio LightSwitch?
Development environment in Visual Studio (2013+)
to rapidly build data-driven business productivity
apps & services
1. Focus 1st on modelling business logic
 Powerful integrated designers (data modelling, entities, relationships, validation rules)
 Response web mobile-ready apps, essentially a SPA, cross-device compatible UX (Template
driven screens creation)
2. Same deployment model as regular SharePoint
Apps
 Publish On-Premises (IIS), Microsoft Azure (Web Sites / Cloud Services) or 3rd party
 Office 365 / SharePoint 2013
What is LightSwitch shining through ?
Desktop Business Apps (Silverlight)
 Optimized for heavy data entry, mouse & keyboard scenarios, with legacy app
integration (i.e. COM)
 Default screen templates provide no-code experiences for manipulating data in a
variety of ways
Mobile Web Business Apps (HTML SPA)
 Optimized for touch devices on multiple platforms (iOS, Android, WP8, WinRT)
 Default screen templates provide no-code experiences that can target multiple form
factors
Cloud Business Apps with Provider Hosting
 Leverage experiences and infrastructure for app access, organizational identity, and
lifecycle management
 Provider hosting (IIS, Azure) allows flexible operational infrastructure choices
LightSwitch (V3.1) Key Features
• Other
 MVVM pattern
 Ability to consume/expose custom business model
as REST Web Service
 Globalization - Localize HTML clients (using human
readable .resjon)
 LINQ queries enabled over DataWorkspace
 ServerApplicationContext for custom services (easy
onboard SP CSOM code, WebAPI, etc.)
 Automatic Row tracking (useful in reconciliation
scenarios)
• Performance
 App load: minification, static compression
 OData: reduced payload size (using JSON lite)
• HTML Client
 Responsive design supports multiple form factors
 Produces Single-Page-Applications (SPAs)
 jQueryMobile 1.9 support
 Streamlined screen creation & navigation
 Command bars
 Popups and Screens as dialogs
 Semantic types (Person, Phone, Email) for improved
validation
• SharePoint 2013/ Office 365
business apps
 Connect to SharePoint 2013 Lists as Entities
 Access SharePoint assets via CSOM
 Provider-hosted deployment
 SharePoint On-Prem or Office 365
LightSwitch Architectural Overview
Data Workspace
Data Workspace
WCF Data Service
Silverlight HTML 5Desktop Mobile
ASP.NET 4.0+
IIS 7+
Data Workspace
Screens | Methods | Controls
SQLServer
Azure
SharePoint
ODataServices
Custom
Data Workspace
WCF Data ServiceOData Service
Submit Pipeline | Queries
LightSwitch Developer roadmap
Describe
Build data model
(data sources,
entities,
relationship)
Create Screens
(Tabs, Command
Bars, Dialogs,
Navigation
boundaries)
Refine
Enhance data
model
• Custom business logic
(include code based)
• Validation rules
• Filters, Queries (e.g.
Parameterized)
Refine screens and
dialogs
• Theme/Brand the App
• Perform layout
adaptations
• Code-based
customizations
Setup Security
(Server-side and/or
client-side)
Extend
Custom business
types (e.g. SSN,
AVS etc.)
Extend Services
(e.g. WebAPI)
Enhance with
custom UI
components
Add support for
custom Data
Sources
Publish
Decide hosting
strategy
Collect required
keys/certificates
Establish database
deployment
LightSwitch 101 – a lap around an
HTML Single Page App
Showcasing some of the great features of LightSwitch
HTML client, via an mobile-ready app for Events
Using the FREE edition of Visual Studio 2013/2015
Community Edition
 Review VS LightSwitch Project templates
 Explore designers – Data, Query & Screen
 Review Code writing capabilities (Client vs. Server)
 Enhance app with a bit more complex validation rules
(e.g. ensure color codes use Hex format)
DEMO
Model data, create relationships, queries
Create screens, pop-ups and themes
MVVM in LightSwitch
JavaScript library files
 jquery/ jquery.mobile
JavaScript libraries that provide cross
browser functionality
 Msls
The primary LightSwitch framework library
that provides the application functionality
 Winjs
A helper library for things such as Promise
objects that handle asynchronous calls
 Datajs
Used to provide OData communication an
contains a representation of all the data
objects in the LightSwitch application
 viewModel.js
Defines the JavaScript representation of the
screens and allows programmatic access to
the screens
Anatomy of a Cloud Business App
 Office Store
 SharePoint
app catalog
Manifest
OData (JSON lite)
 LightSwitch Web Site
 Service layer
Configured
Data
sources
• Cloud business app is SharePoint App with
added middle-tier hosted elsewhere ,
connected to data sources
• Clients talk to SharePoint via cross-domain
calls
• Ability to use Newsfeed, and associate
Documents to business entities
REST / CSOM
 SharePoint 2013
 Office 365 OAuth
• The provider-hosted middle-tier is
authenticated with SharePoint via
OAuth
• Middle-tier service layer can model
SharePoint
and potentially connect to other
external data sourcesModernbrowser client
(HTML5 SPA)
Cloud Business App Project
 Dedicated project template in the “Office/SharePoint”
 Just like with a “SharePoint App” allows deployment
additional SharePoint assets (lists, content types, etc.)
 CSOM references are added to Server project
automatically so you can access SharePoint host web
Enable/Disable SharePoint
Migrate existing apps
Hybrid Authentication Code
Server 2 Server or ACS (soon no longer) with no changes to
code
SharePoint List Attach uses user’s
identity (not app pool)
 Get access to
Application.SharePoint &
Application.User
 Automatically add references and
CSOM
 Publishing to corporate store
Event Companion app
A data-driven mobile-ready business app using
LightSwitch HTML client
Enhancing the LightSwitch web project for Events with
some more goodness
 Expanded the LightSwitch Server project
 Exploit LightSwitch server APIs
 More on Code writing capabilities
DEMO
Hosting Options for LightSwitch Apps
Microsoft Azure
SharePoint 2013 Add-Ins (option)
Cloud
On-Prem
Desktop Client
 Silverlight 5 in-browser
(Windows, Mac)
 Out-of-browser
(Windows only)
Browsers
 HTML client optimized
for iOS 5/6, Android 4,
WinRT, Win Phone 8.
SQL Azure
SQL Server
(for the Intrinsic Database)
SharePoint 2013
Thank you!
Online evaluation form
Evaluations en ligne
http://bit.ly/SPSParis2016Eval
Merci !

More Related Content

What's hot

Office Business Applications in Financial Services
Office Business Applications in Financial ServicesOffice Business Applications in Financial Services
Office Business Applications in Financial Services
Mike Walker
 
2012 12-08 #SPSUK SharePoint 2010 SQL 2012
2012 12-08 #SPSUK SharePoint 2010 SQL 20122012 12-08 #SPSUK SharePoint 2010 SQL 2012
2012 12-08 #SPSUK SharePoint 2010 SQL 2012
Gus Fraser
 

What's hot (20)

A Business Perspective on Building SharePoint 2013 Solutions on Windows Azure
A Business Perspective on Building SharePoint 2013 Solutions on Windows AzureA Business Perspective on Building SharePoint 2013 Solutions on Windows Azure
A Business Perspective on Building SharePoint 2013 Solutions on Windows Azure
 
Office 365 identity
Office 365 identityOffice 365 identity
Office 365 identity
 
Configuring SharePoint 2013 for BI scenarios
Configuring SharePoint 2013 for BI scenariosConfiguring SharePoint 2013 for BI scenarios
Configuring SharePoint 2013 for BI scenarios
 
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
2b - PowerPivot y SharePoint 2010, por Tomas Hernandez
 
The Power of BI: A guided tour of Microsoft's Business Intelligence tooling
The Power of BI: A guided tour of Microsoft's Business Intelligence toolingThe Power of BI: A guided tour of Microsoft's Business Intelligence tooling
The Power of BI: A guided tour of Microsoft's Business Intelligence tooling
 
Office 365 Saturday Europe - Yammer, Office 365, SharePoint (yOS) : hybrid ar...
Office 365 Saturday Europe - Yammer, Office 365, SharePoint (yOS) : hybrid ar...Office 365 Saturday Europe - Yammer, Office 365, SharePoint (yOS) : hybrid ar...
Office 365 Saturday Europe - Yammer, Office 365, SharePoint (yOS) : hybrid ar...
 
Office Business Applications in Financial Services
Office Business Applications in Financial ServicesOffice Business Applications in Financial Services
Office Business Applications in Financial Services
 
Power-BI and SharePoint
Power-BI and SharePointPower-BI and SharePoint
Power-BI and SharePoint
 
Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013Business Intelligence in SharePoint 2013
Business Intelligence in SharePoint 2013
 
Introducing Power BI Embedded
Introducing Power BI EmbeddedIntroducing Power BI Embedded
Introducing Power BI Embedded
 
2012 12-08 #SPSUK SharePoint 2010 SQL 2012
2012 12-08 #SPSUK SharePoint 2010 SQL 20122012 12-08 #SPSUK SharePoint 2010 SQL 2012
2012 12-08 #SPSUK SharePoint 2010 SQL 2012
 
Data Centric Composites and mashups In SharePoint 2010
Data Centric Composites and mashups In SharePoint 2010Data Centric Composites and mashups In SharePoint 2010
Data Centric Composites and mashups In SharePoint 2010
 
Oracle WebCenter portal
Oracle WebCenter portalOracle WebCenter portal
Oracle WebCenter portal
 
Microsoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure PlatformMicrosoft Cloud Computing - Windows Azure Platform
Microsoft Cloud Computing - Windows Azure Platform
 
Integration with dynamics ax 2012
Integration with dynamics ax 2012Integration with dynamics ax 2012
Integration with dynamics ax 2012
 
SharePoint 2013 overview jeremy thake
SharePoint 2013 overview   jeremy thakeSharePoint 2013 overview   jeremy thake
SharePoint 2013 overview jeremy thake
 
SharePoint 2013 overview
SharePoint 2013 overviewSharePoint 2013 overview
SharePoint 2013 overview
 
JAXSPUG April 2016 - Staying in the Know with Office 365
JAXSPUG April 2016 - Staying in the Know with Office 365JAXSPUG April 2016 - Staying in the Know with Office 365
JAXSPUG April 2016 - Staying in the Know with Office 365
 
The future of Productivity - SharePoint 2010
The future of Productivity - SharePoint 2010The future of Productivity - SharePoint 2010
The future of Productivity - SharePoint 2010
 
Gib 2021 - Intro to BizTalk Migrator
Gib 2021 - Intro to BizTalk MigratorGib 2021 - Intro to BizTalk Migrator
Gib 2021 - Intro to BizTalk Migrator
 

Similar to Rapidly building data-driven modern Office 365 Cloud Business add-ins with LightSwitch HTML

Matthew H Adams Resume
Matthew H Adams ResumeMatthew H Adams Resume
Matthew H Adams Resume
mattiemobile
 
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
 

Similar to Rapidly building data-driven modern Office 365 Cloud Business add-ins with LightSwitch HTML (20)

Intro to SharePoint for Developers
Intro to SharePoint for DevelopersIntro to SharePoint for Developers
Intro to SharePoint for Developers
 
Elado development capablities
Elado development capablitiesElado development capablities
Elado development capablities
 
Meec 2010 SharePoint 2010
Meec 2010 SharePoint 2010Meec 2010 SharePoint 2010
Meec 2010 SharePoint 2010
 
Irw Generic Power Point
Irw Generic Power PointIrw Generic Power Point
Irw Generic Power Point
 
Matthew H Adams Resume
Matthew H Adams ResumeMatthew H Adams Resume
Matthew H Adams Resume
 
Commit University - Microsoft Azure
Commit University - Microsoft AzureCommit University - Microsoft Azure
Commit University - Microsoft Azure
 
SPS Gulf : SharePoint 2013 Cloud Business App
SPS Gulf : SharePoint 2013 Cloud Business AppSPS Gulf : SharePoint 2013 Cloud Business App
SPS Gulf : SharePoint 2013 Cloud Business App
 
SAP Microsoft Interoperability - Business Process Solutions
SAP Microsoft Interoperability - Business Process SolutionsSAP Microsoft Interoperability - Business Process Solutions
SAP Microsoft Interoperability - Business Process Solutions
 
Mobilizing your Existing Enterprise Applications
Mobilizing your Existing Enterprise ApplicationsMobilizing your Existing Enterprise Applications
Mobilizing your Existing Enterprise Applications
 
Microsoft Office SharePoint Server 2007 - Overview
Microsoft Office SharePoint Server 2007 - OverviewMicrosoft Office SharePoint Server 2007 - Overview
Microsoft Office SharePoint Server 2007 - Overview
 
Chris givens building custom service applications
Chris givens building custom service applicationsChris givens building custom service applications
Chris givens building custom service applications
 
Integrated Proposal (Vsts Sps Tfs) - MS stack
Integrated Proposal   (Vsts Sps Tfs) - MS stackIntegrated Proposal   (Vsts Sps Tfs) - MS stack
Integrated Proposal (Vsts Sps Tfs) - MS stack
 
SPFestDc AZR204 Microsoft Graph and SharePoint Framework under steroids with ...
SPFestDc AZR204 Microsoft Graph and SharePoint Framework under steroids with ...SPFestDc AZR204 Microsoft Graph and SharePoint Framework under steroids with ...
SPFestDc AZR204 Microsoft Graph and SharePoint Framework under steroids with ...
 
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
Sharepointarchitecturereal worldscenariofundamentals-150419043032-conversion-...
 
Sp tech con-bi2011
Sp tech con-bi2011Sp tech con-bi2011
Sp tech con-bi2011
 
Can IBM i play with SOA?
Can IBM i play with SOA?Can IBM i play with SOA?
Can IBM i play with SOA?
 
Sps south fla-bi_data_visualization
Sps south fla-bi_data_visualizationSps south fla-bi_data_visualization
Sps south fla-bi_data_visualization
 
SharePoint Server 2016 - Lets get ready - Wisconsin SharePoint User Group
SharePoint Server 2016 - Lets get ready - Wisconsin SharePoint User GroupSharePoint Server 2016 - Lets get ready - Wisconsin SharePoint User Group
SharePoint Server 2016 - Lets get ready - Wisconsin SharePoint User Group
 
BizSpark migreren naar de cloud
BizSpark migreren naar de cloudBizSpark migreren naar de cloud
BizSpark migreren naar de cloud
 
SAP/Microsoft Interoperability Tutorial
SAP/Microsoft Interoperability TutorialSAP/Microsoft Interoperability Tutorial
SAP/Microsoft Interoperability Tutorial
 

More from Marius Constantinescu [MVP]

TechDays11 Geneva - Going Further with SharePoint 2010 Search
TechDays11 Geneva - Going Further with SharePoint 2010 SearchTechDays11 Geneva - Going Further with SharePoint 2010 Search
TechDays11 Geneva - Going Further with SharePoint 2010 Search
Marius Constantinescu [MVP]
 

More from Marius Constantinescu [MVP] (8)

MIcrosoft experiences - SharePoint 2016 : architecture, déploiement et topol...
MIcrosoft experiences  - SharePoint 2016 : architecture, déploiement et topol...MIcrosoft experiences  - SharePoint 2016 : architecture, déploiement et topol...
MIcrosoft experiences - SharePoint 2016 : architecture, déploiement et topol...
 
SP24 online conference April 17, 2014 > Real-live experience using cross-site...
SP24 online conference April 17, 2014 > Real-live experience using cross-site...SP24 online conference April 17, 2014 > Real-live experience using cross-site...
SP24 online conference April 17, 2014 > Real-live experience using cross-site...
 
Building Product Centric sites using Cross-Site publishing and Search [Swiss ...
Building Product Centric sites using Cross-Site publishing and Search [Swiss ...Building Product Centric sites using Cross-Site publishing and Search [Swiss ...
Building Product Centric sites using Cross-Site publishing and Search [Swiss ...
 
Office 365 Saturday Europe - Self-Service Business Intelligence with Power BI
Office 365 Saturday Europe - Self-Service Business Intelligence with Power BIOffice 365 Saturday Europe - Self-Service Business Intelligence with Power BI
Office 365 Saturday Europe - Self-Service Business Intelligence with Power BI
 
Cross-site publishing & how to Create Product catalogs with SharePoint 2013
Cross-site publishing & how to Create Product catalogs with SharePoint 2013Cross-site publishing & how to Create Product catalogs with SharePoint 2013
Cross-site publishing & how to Create Product catalogs with SharePoint 2013
 
Branding & Design Opportunities/Challenges with SharePoint 2013
Branding & Design Opportunities/Challenges with SharePoint 2013Branding & Design Opportunities/Challenges with SharePoint 2013
Branding & Design Opportunities/Challenges with SharePoint 2013
 
What's new for Developers in SharePoint 2013
What's new for Developers in SharePoint 2013What's new for Developers in SharePoint 2013
What's new for Developers in SharePoint 2013
 
TechDays11 Geneva - Going Further with SharePoint 2010 Search
TechDays11 Geneva - Going Further with SharePoint 2010 SearchTechDays11 Geneva - Going Further with SharePoint 2010 Search
TechDays11 Geneva - Going Further with SharePoint 2010 Search
 

Recently uploaded

Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 

Rapidly building data-driven modern Office 365 Cloud Business add-ins with LightSwitch HTML

  • 1. Marius Constantinescu D03: Rapidly building data-driven modern Office 365 Cloud Business add-ins with LightSwitch HTML 28 mai 2016 #SPSParis @c_marius
  • 2. Diamond Platinum Gold Silver Organizers & Community www.spsevents.org/city/Paris/ Paris2016 Keynote Speaker: Jeff Teper Microsoft Corporate Vice-President SharePoint + OneDrive Donation
  • 3.
  • 4. Tombola / Raffle After Jeff Teper’s Keynote Après la Keynote de Jeff Teper 2 4 2 1 4 4 3
  • 5.  MVP Office Servers and Services (previously on SharePoint & Office365)  MC* > e.g. MCT, MCSE, MCITP, MCPD & others I forgot  Solutions Architect with a focus on ECM & Collaboration, Enterprise Search, integration solutions.  Regional Leader of the Swiss SharePoint Club (600+ members)  Speaker at local/international events (Swiss SPC, SPS-*, Tech-Days, Soft-Shake) Ego me > Marius Constantinescu Managing Consultant blue-infinity Geneva, Switzerland @c_marius c_marius@msn.com ch.linkedin.com/mct365
  • 6. What do we mean by “modern, cloud business apps”? BusinessUser • Cross-devices – on any device at any time • Responsive , adaptive Design, touch ready • “Cool”… Architect • Multi-tier architecture • Patterns & more patterns (e.g. MV*) • Integration with Line-Of -Business • Infinite Scalability • Modelling tools for business entities with rules validation UXSpecialist/Designer • Fluent, Ergonomic, Minimalistic design • Clear interaction flows, navigation • Material Design Developer •Best IDE , syntax highlighting, intellisense •Automatic dependency management, error checking for CSS/JavaScript, •minification of resources •Complex Libraries/ Frameworks & more (Knockout, Durango, BreezeJS, AngularJS, ) •Databinding, Widgets, Web Components, etc.
  • 7. What is Visual Studio LightSwitch? Development environment in Visual Studio (2013+) to rapidly build data-driven business productivity apps & services 1. Focus 1st on modelling business logic  Powerful integrated designers (data modelling, entities, relationships, validation rules)  Response web mobile-ready apps, essentially a SPA, cross-device compatible UX (Template driven screens creation) 2. Same deployment model as regular SharePoint Apps  Publish On-Premises (IIS), Microsoft Azure (Web Sites / Cloud Services) or 3rd party  Office 365 / SharePoint 2013
  • 8. What is LightSwitch shining through ? Desktop Business Apps (Silverlight)  Optimized for heavy data entry, mouse & keyboard scenarios, with legacy app integration (i.e. COM)  Default screen templates provide no-code experiences for manipulating data in a variety of ways Mobile Web Business Apps (HTML SPA)  Optimized for touch devices on multiple platforms (iOS, Android, WP8, WinRT)  Default screen templates provide no-code experiences that can target multiple form factors Cloud Business Apps with Provider Hosting  Leverage experiences and infrastructure for app access, organizational identity, and lifecycle management  Provider hosting (IIS, Azure) allows flexible operational infrastructure choices
  • 9. LightSwitch (V3.1) Key Features • Other  MVVM pattern  Ability to consume/expose custom business model as REST Web Service  Globalization - Localize HTML clients (using human readable .resjon)  LINQ queries enabled over DataWorkspace  ServerApplicationContext for custom services (easy onboard SP CSOM code, WebAPI, etc.)  Automatic Row tracking (useful in reconciliation scenarios) • Performance  App load: minification, static compression  OData: reduced payload size (using JSON lite) • HTML Client  Responsive design supports multiple form factors  Produces Single-Page-Applications (SPAs)  jQueryMobile 1.9 support  Streamlined screen creation & navigation  Command bars  Popups and Screens as dialogs  Semantic types (Person, Phone, Email) for improved validation • SharePoint 2013/ Office 365 business apps  Connect to SharePoint 2013 Lists as Entities  Access SharePoint assets via CSOM  Provider-hosted deployment  SharePoint On-Prem or Office 365
  • 10. LightSwitch Architectural Overview Data Workspace Data Workspace WCF Data Service Silverlight HTML 5Desktop Mobile ASP.NET 4.0+ IIS 7+ Data Workspace Screens | Methods | Controls SQLServer Azure SharePoint ODataServices Custom Data Workspace WCF Data ServiceOData Service Submit Pipeline | Queries
  • 11. LightSwitch Developer roadmap Describe Build data model (data sources, entities, relationship) Create Screens (Tabs, Command Bars, Dialogs, Navigation boundaries) Refine Enhance data model • Custom business logic (include code based) • Validation rules • Filters, Queries (e.g. Parameterized) Refine screens and dialogs • Theme/Brand the App • Perform layout adaptations • Code-based customizations Setup Security (Server-side and/or client-side) Extend Custom business types (e.g. SSN, AVS etc.) Extend Services (e.g. WebAPI) Enhance with custom UI components Add support for custom Data Sources Publish Decide hosting strategy Collect required keys/certificates Establish database deployment
  • 12. LightSwitch 101 – a lap around an HTML Single Page App Showcasing some of the great features of LightSwitch HTML client, via an mobile-ready app for Events Using the FREE edition of Visual Studio 2013/2015 Community Edition  Review VS LightSwitch Project templates  Explore designers – Data, Query & Screen  Review Code writing capabilities (Client vs. Server)  Enhance app with a bit more complex validation rules (e.g. ensure color codes use Hex format) DEMO
  • 13. Model data, create relationships, queries
  • 16. JavaScript library files  jquery/ jquery.mobile JavaScript libraries that provide cross browser functionality  Msls The primary LightSwitch framework library that provides the application functionality  Winjs A helper library for things such as Promise objects that handle asynchronous calls  Datajs Used to provide OData communication an contains a representation of all the data objects in the LightSwitch application  viewModel.js Defines the JavaScript representation of the screens and allows programmatic access to the screens
  • 17. Anatomy of a Cloud Business App  Office Store  SharePoint app catalog Manifest OData (JSON lite)  LightSwitch Web Site  Service layer Configured Data sources • Cloud business app is SharePoint App with added middle-tier hosted elsewhere , connected to data sources • Clients talk to SharePoint via cross-domain calls • Ability to use Newsfeed, and associate Documents to business entities REST / CSOM  SharePoint 2013  Office 365 OAuth • The provider-hosted middle-tier is authenticated with SharePoint via OAuth • Middle-tier service layer can model SharePoint and potentially connect to other external data sourcesModernbrowser client (HTML5 SPA)
  • 18. Cloud Business App Project  Dedicated project template in the “Office/SharePoint”  Just like with a “SharePoint App” allows deployment additional SharePoint assets (lists, content types, etc.)  CSOM references are added to Server project automatically so you can access SharePoint host web Enable/Disable SharePoint Migrate existing apps Hybrid Authentication Code Server 2 Server or ACS (soon no longer) with no changes to code SharePoint List Attach uses user’s identity (not app pool)  Get access to Application.SharePoint & Application.User  Automatically add references and CSOM  Publishing to corporate store
  • 19. Event Companion app A data-driven mobile-ready business app using LightSwitch HTML client Enhancing the LightSwitch web project for Events with some more goodness  Expanded the LightSwitch Server project  Exploit LightSwitch server APIs  More on Code writing capabilities DEMO
  • 20. Hosting Options for LightSwitch Apps Microsoft Azure SharePoint 2013 Add-Ins (option) Cloud On-Prem Desktop Client  Silverlight 5 in-browser (Windows, Mac)  Out-of-browser (Windows only) Browsers  HTML client optimized for iOS 5/6, Android 4, WinRT, Win Phone 8. SQL Azure SQL Server (for the Intrinsic Database) SharePoint 2013
  • 21. Thank you! Online evaluation form Evaluations en ligne http://bit.ly/SPSParis2016Eval Merci !