• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Tutorial   building custom tools
 

Tutorial building custom tools

on

  • 1,005 views

Slides to accompany this post: http://www.dekho.com.au/how-to-build-custom-tools-for-dekho/

Slides to accompany this post: http://www.dekho.com.au/how-to-build-custom-tools-for-dekho/

Statistics

Views

Total Views
1,005
Views on SlideShare
939
Embed Views
66

Actions

Likes
0
Downloads
8
Comments
0

1 Embed 66

http://www.dekho.com.au 66

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Tutorial   building custom tools Tutorial building custom tools Presentation Transcript

    • Developing Custom Tools
    • Agenda...• Dekho Architecture• Custom Tools Overview• Communication & Working with the Esri Flex API• Working with the Dekho Web Services API• Consideration and Best Practices
    • Dekho Architecture Overview
    • Dekho Geo-App PortalDekho Application Manager Geo-App publishing Roles and access rights definition Dekho Application Manager Geo-App configuration Map Services Spatial Information Corporate data Web Services Tools Gallery Report Gallery Search Tasks
    • Custom Tools Overview
    • The Basics• A way of customising Dekho• Built as a .swf file which runs alongside Dekho Parent Application Dekho Custom Tool Flash Runtime
    • The process• Write (SWF)• Deploy (Application Server i.e. Tomcat)• Add a button (Dekho Studio)
    • Start-Up sequenceClient Browser Application Server Dekho Server URL Dekho Page Dekho swf Dekho UI Tool ‘A’ click (URL to swf on server) Tool A Tool ‘A’ swf Tool B Tool C
    • In memory… now what?Client Browser Application Server Dekho Page Option 1: Do you thing… clean up and Dekho UI destruct Dekho UI Option 2: Tool A Persist and clean up on Tool A - Dialogue close or… Tool B - Second click or… - App shut down Tool C
    • Second click – unload…Client Browser Application Server Dekho Page Dekho UI Dekho UI Tool A Tool A Tool B Tool C
    • What can you use a custom tool for?• Launching another browser application• Launching another client side desktop application• Creating a custom workflow• Change layers, extent, selection…• Loading WMS layers
    • Deploy….. • Deploying your tool means making it available within the application server i.e. tomcat • Common practice to add your custom too to the root of the same domain as DekhoDecember 10 // www.esriaustralia.com.au
    • Add….. • Add tool to Dekho via Dekho Studio • Complete Tool WizardDecember 10 // www.esriaustralia.com.au
    • Use…. • Custom tool available on main Dekho InterfaceDecember 10 // www.esriaustralia.com.au
    • Building your first “Hello world” custom tool
    • Communication & Working with the Esri Flex API
    • How does my custom tool interact with Dekho?• Broadcast out to the parent application i.e. browser• Receive messages from Dekho• Send messages to Dekho• Communicate with Dekho via the Services API• Communicate with any web services
    • Broadcast out to the parent application• Parent application can control Dekho• Parent application can receive messages from Dekho JavaScript or C# client stubs provided
    • Working with the Dekho application• Listening to messages• API methods made public by Dekho SWF
    • Intercepting messages from Dekho• messageFromDekho Function. Dekho broadcasts the event as E.g: <eventtype>,<sessionid> Session, 125482993879
    • parentApplication• The Dekho SWF element that loads your custom tool
    • Working with the Esri Flex API 1 2December 10 // www.esriaustralia.com.au
    • Working with Dekho selection and the Esri Flex API
    • Working with the Dekho Web Services API
    • Using Dekho Services APIParent Application Dekho Custom ToolFlash Runtime Dekho Services API
    • The Process• Create channel and remote object• Get Session Information from parentApplication• Use session information to call Dekho Web Services API
    • Example: Saving selection as a redline Client Browser Application Server Dekho Page Establish AMF Channel Dekho UI DrawRedlines Get SessionIn Refresh Map ClearSelection SaveBookmark Tool A
    • Using the Dekho Services APIYou are responsible for creating and opening a channel.Your responsible for creating a remote object to the correct service i.e.“SessionService”Finally make the call to the Dekho Services and specify the response handlers
    • Working with Dekho Web Service API
    • Custom Tool Summary• Dekho’s client extensibility model.• Ways to communicate with Dekho and the parent application: – Broadcast out to the parent application – Dekho Flex API + Receive & Send messages – Communicate with the Dekho Services API• Your custom tool can use the Esri Flex API• Your custom tool can use the Dekho Web Services API
    • Considerations and Best Practices
    • Code…• messageFromDekho Function. Mandatory method!!
    • Clean-up practice
    • The Dekho Simulator & Debugging• Simulator is a test harness for custom tools• Please refer to documentation• Don’t forget: – Server Address URL and Tool URL – Map Service Address• Simulator is limited – mock as necessary
    • Handling web services• Tell the user when you’re waiting• Chose the right channel (for performance and environment)• Assign fault handler functions for service calls
    • Security• Security – Cross Domain – understanding if your tool needs to pull data from another source
    • Maintenance & Deployment• Maintenance – Make your tool portable, configure external Web Services URL address – Flex SDK version – Esri Flex API version• Deploying into a scaled environment
    • Product Information:www.esriaustralia.com.au/dekhowww.esriaustralia.com.au/dekhohelpwww.esriaustralia.com.au/dekhoblog