cross platform development mit...
Post on 27-May-2020
19 Views
Preview:
TRANSCRIPT
Cross Platform Development mit SharePoint
Agenda Wir entwickeln eine App um Businesstrips in
SharePoint zu erfassen
Businesstraveller 0.1
Folien
Demo Projekt
Link Sammlung
Und meine Emailadresse
http://ppedv.de/msts
Datenhaltung in SharePoint
APP auf allen Geräten lauffähig
SharePoint On Premise – nicht öffentlich
Erfassung von Reisen
im Namen des Benutzers
Distanzberechnung der Reise
Anforderungen
X-Platform
In computing, cross-platform, is an attribute conferred to
computer software or computing methods and concepts that are
implemented and inter-operate on multiple computer platforms.
• Multi Device Development • Android
• iOS
• Windows Phone
• Native Development
• Cross Platform Apps
X-Platform
SharePoint
Web Service Smart Phone
SharePoint
Daten Tunnel
SharePoint
Web Service Smart Phone
REST REST Client API
HTML
App
ASP.NET MVC
Web API
SharePoint
Workflow
SharePoint Backend Externe Services einbinden
SharePoint
REST
SharePoint
Workflow
• Listen / Bibliotheken
• Kein Ersatz für Datenbank Tabellen Limits beachten!
• Kopplung an Workflows
SharePoint als Datenspeicher
Workflow Manager 1.0
Installation unter http://ppedv.de/msts
Startart
beim Anlegen eine Items
beim Ändern
Manueller Start
Umfangreiche Aktionen
zb Send Mail, Check In/Out
http-Send für REST Dienste
Zugriff auf Webservices
SharePoint Workflow
Abfrage von Längen- und Breitengrad für
Adressen
Google – Distance API
https://maps.googleapis.com/maps/api/distancematrix/json?origins=Austria|Vienna&destinations=" +
City + "&mode=transit&language=de-DE&key=
Demo SharePoint Liste anlegen
Workflow anlegen
http-Send (Google)
ASP.NET – Web API
ASP.NET – MVC WebAPI • Framework für REST-Services
• Serialisierung mit JSON oder XML
• Controller mit Methoden für: GET
PUT
POST
DELETE
http://localhost:31009/api/customer
SharePoint – Client Object Model (CSOM)
• Bibliothek für SharePoint Remote Zugriff Managed Code
JavaScript
(Silverlight)
• Datenabfrage
• SharePoint Verwaltung
• Angelehnt an SP Server API
CSOM Architektur
Anwendung SharePoint
Managed CSOM
Service Proxy
C# Code
Client.svc
Content DB
XML
JSON
Authentifizierung Anforderung: Benutzer soll Credentials von SharePoint nutzen
„SharePoint“-Tunnel mit Web API – OAuth Authentifizierung
Credentials
App WebAPI
Credentials
SharePoint
Credentials
AccessToken
C53d3nI0js
AccessToken
C53d3nI0js
AccessToken
Credentials
AccessToken Credentials
Demo WebAPI
Authentifizierung
Zugriff auf SharePoint
App-Entwicklung
Apache CORDOVA (PhoneGap)
• Framework zur Entwicklung hybrider Apps für mobile Endgeräte
• Programmierung mit HTML/CSS und JavaScript
• Unterstützte Plattformen: • iOS
• Android
• Windows Phone
• BlackBerry
• Bada
• Symbian
• Tizen
Plug-Ins für Device Zugriff
Visual Studio Tools für Apache Cordova
• Toolset im Visual Studio
• Installiert alle SDKs
• Liefert Emulatoren
• Achtung: nutzt Hyper-V
• Integrierte Entwicklungsumgebung für Cordova
• JavaScript oder TypeScript
• Entwickelt von Anders Hejlsberg
• Ziel: • JavaScript Development für große Projekte
• Precompiler für JavaScript
• Spracherweiterungen • Typen
• Klassen
• Vererbung
• Interfaces
• Module
TypeScript
• JQuery • JQuery Mobile
• Angular JS
• KnockOut
• …
• Handlebars
• Cordova unterstützt eine Vielzahl an JS-Bibliotheken
JS-Bibliotheken in Cordova
JavaScript Framework für mobile Entwicklung
Single Page Framework
Pages in DIV-Elementen
Routing durch Anchor # Elemente
Etabliert und große Auswahl an Controls und Styles
JQuery Mobile
Handlebars
<div class="entry"> <h1>{{title}}</h1> <h2>By {{author.name}}</h2> <div class="body"> {{body}} </div> </div>
• HTML Template Language
• Erweiterung von Mustache Templates
• Trennung von Code und View
• Einfach anzuwenden
Demo Cordova & Typescript
Single Page Application
Listen Ansicht
Datensatz eintragen
http://ppedv.de/msts
Sammlung aller Links
Und GibtHub Projekt „BusinessTraveller “
Weiterführende Informationen
© 2014 Microsoft Corporation. All rights reserved. Because
Microsoft must respond to changing market conditions, it should
not be interpreted to be a commitment on the part of Microsoft,
and Microsoft cannot guarantee the accuracy of any information
provided after the date of this presentation. MICROSOFT MAKES
NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE
INFORMATION IN THIS PRESENTATION.
Vielen Dank
top related