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

Preview:

Citation preview

Senior Program Manager MicrosoftChristian Abeln

WorkshopClient 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)

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.

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

Demo

Demo / Lab

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

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)

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)

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)

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

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

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

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

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

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.

Recommended