AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.07.2007, 05:56   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 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, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
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

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 10:43.