14
Senior Program Manager Microsoft Christian Abeln Workshop Client Add- Ins & .NET Interop

Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Embed Size (px)

Citation preview

Page 1: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Senior Program Manager MicrosoftChristian Abeln

WorkshopClient Add-Ins & .NET Interop

Page 2: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Scharfe Sache

Agenda

Agenda

Client AddIns, .NET Interop Überblick

Einsatzgebiete Werkzeuge für Visual Studio & C/AL

Workshop: Ein AddIn für Bing Maps

Vom Anzeigen und Steuern einer Karte im Windows Client, bis zum serverseitigen asynchronen ”auf Bedarf” Geocoden.

(-> installieren Sie das Bing control SDK)

Page 3: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Add-Ins für den Windows Client?

Erweitert C/ALDaten & Ereignisse

Text/Icon/PicFactory Schärfe

Was ist ein Add-in• Factory• Ermöglicht eigene UI Konzepte, e.g.

Visualisierungen• Bindet Daten & Ereignisse• Erweitert C/AL Programmierschnittstellen

Was es nicht ist• Eine client seitige Erweiterung der

Geschäftslogik.• Ein Werkzeug, mit dem man ”versteckte”

Funktionen in Windows Client nutzen kann.

Page 4: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Facts: .Net Interop

ToolsProduktivität

Text/Icon/PicPerformance Schärfe

Erweitert Geschäftslogik• Zugriff auf externe Dienste• Perfekt für Algorithmen und Datenverarbeitung

(Black Box)• Pefekt für datenmodell basierte Client-Server

Kommunikation

Page 5: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Demo

Demo / Lab

Workshop:Vom Anzeigen und Steuern einer Karte im Windows Client, bis zum serverseitigen asynchronen ”auf Bedarf” Geocoden.

Page 6: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Workshop Resources

• Dynamics NAV 2013• Developer License• Visual Studio 2012 Professional

• Visual Studio Templates for 2012• AddIn Registration toolkit• Bing Map Control SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27165)

Page 7: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)

CreateControlInitialize, ApplySize

Bin

gM

ap

Ad

dIn

.dll

Karte abrufen

Step 1(Einfaches Map AddIn)

Page 8: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

AddInReadyAppID setzen

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)

CreateControlInitialize, ApplySizeAddInReady eventApplicationKey

Bin

gM

ap

Ad

dIn

.dll

AuthenticateKarte abrufen

Step 2(Authentication)

Page 9: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)Authenticate

Karte abrufen

Step 3(Map View, Location, Zoom)

Location

Bin

gG

eocod

er.

dll

AddInReady AppID setzen

Karte positionieren

Location

Bin

gG

eocod

er.

dll

CreateControlInitialize, ApplySizeAddInReady eventApplicationKeySetView, ZoomViewMode

Bin

gM

ap

Ad

dIn

.dll

Page 10: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)Authenticate

Karte abrufenGeocodierung

Step 4(Pushpins & client geo-coding)

LocationPushpinInfo(GeoCode)

Bin

gG

eocod

er.

dll

AddInReady AppID setzen

Karte positionierenPushpin setzen

LocationPushpinInfoGeoCode

Bin

gG

eocod

er.

dll

CreateControlInitialize, ApplySizeAddInReady eventApplicationKeySetView, ZoomViewModeAddPushpin, ...B

ing

Map

Ad

dIn

.dll

Page 11: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

SynchroneGeocodierung

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)Authenticate

Karte abrufenGeocodierung

Step 5(Sync. server side geo-coding)

LocationPushpinInfoGeoCode

Bin

gG

eocod

er.

dll

AddInReady AppID setzen

Karte positionierenPushpin setzen

LocationPushpinInfo(GeoCode)

Bin

gG

eocod

er.

dll

CreateControlInitialize, ApplySizeAddInReady eventApplicationKeySetView, ZoomViewModeAddPushpin, ...

Bin

gM

ap

Ad

dIn

.dll

Customer

Latitude / Longitude

/ IsGeocode

d

Page 12: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

AsynchroneGeocodierungStep 6

(Async server side geo-coding)

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)Authenticate

Karte abrufen

LocationPushpinInfoGeoCode

GeoCodeAsync

Bin

gG

eocod

er.

dll

AddInReady AppID setzen

Karte positionierenPushpin setzen

LocationPushpinInfo(GeoCode)

Bin

gG

eocod

er.

dll

CreateControlInitialize, ApplySizeAddInReady eventApplicationKeySetView, ZoomViewModeAddPushpin, ...

Bin

gM

ap

Ad

dIn

.dll

Customer

Latitude / Longitude

/ IsGeocode

d

Page 13: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

AsynchroneGeocodierungStep 7*

(Info box, Actions)

Bing Maps Server

NAV DB

Microsoft Dynamics NAV Server

Add-Inregistration

Microsoft Dynamics NAV Client

Visual Studio 2013 Professional(with Add-In templates)Authenticate

Karte abrufen

LocationPushpinInfoGeoCodeGeoCodeAsync

Bin

gG

eocod

er.

dll

AddInReady AppID setzen

Karte positionierenPushpin setzen

Action ausführen

LocationPushpinInfo(GeoCode)

Bin

gG

eocod

er.

dll

CreateControlInitialize, ApplySizeAddInReady eventApplicationKeySetView, ZoomViewModeAddPushpin, ...InfoBox, SetActionsB

ing

Map

Ad

dIn

.dll

Customer

Latitude / Longitude

/ IsGeocod

ed

Page 14: Senior Program Manager Microsoft Christian Abeln Workshop Client Add-Ins &.NET Interop

Vielen Dank für Ihre Aufmerksamkeit

Microsoft® Dynamics Airlift

2012

Feedback Upcoming

Das Zusammenspiel der Gewürze. www.dynamics-airlift.de

© 2011 Microsoft Corporation. All rights reserved.