AXForum  
Go Back   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Old 12.07.2007, 05:56   #1  
Blog bot is offline
Blog bot
Участник
 
25,646 / 848 (80) +++++++
Join Date: 28.10.2006
Issues concerning X++: Integrating Mappoint into the Customer form...
Источник: http://blogs.msdn.com/x/archive/2007...omer-form.aspx
==============

At today's webinar, I demonstrated how managed code can be called from a form, to get a bitmap showing the customer's address. The bitmap is found on the address pane, and is updated as the user steps from one record to another.
All the magic happens in the UpdateBitmap method on the form (it is called from the datasource when a new record is selected). It will instantiate a new instance of Mappoint.MappointInterface and call the Find method with the address. It returns a name of a temporary file containing the bitmap (OK, this is not ideal, but this is not production code) that is subsequently loaded into the control.
You'll find the code for the assembly I wrote for this in the enclosed solution. It relies on having a mappoint account, which is readily available from the mappoint site (start from http://www.microsoft.com/mappoint/pr...e/default.mspx). My username and password were issued to me for a specific purpose, namely teaching. I cannot in good conscience distribute code containing this information, so I've just provided a placeholder in the code for you to put in your credentials.
There are other vendors providing this sort of mapping through web services, but my affiliation with MS does not allow me to go into details about them...
You can pick up the bits at my personal FTP site (for want of a better place to put it). Point your browser to ftp://ftp.villadsen.dk/MappointInCustTable.zip, and you should be good to go.


Источник: http://blogs.msdn.com/x/archive/2007...omer-form.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
axaptafreak: Getting new table fields into your form datasource Blog bot DAX Blogs 2 24.01.2008 22:51
Issues concerning X++: Pen based form demo Blog bot DAX Blogs 0 31.10.2007 23:40
Dynamics AX: Dynamics AX project success - Customer Ownership & Expectations Blog bot DAX Blogs 0 07.08.2007 21:10
Axapta Lessons: Trapping keystrokes in a Form Blog bot DAX Blogs 13 01.11.2006 18:16
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 04:34.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.