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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 17.02.2010, 00:20   #1  
Damon is offline
Damon
Участник
 
8 / 10 (1) +
Регистрация: 11.01.2010
Customer import routine
yet another question

i have built a routine to bring it customer records into the CustTable and some other tables off of the CustTable which all works fine.

but i am having issues bring into the address table for the customers, in version 4 this was simple, but noe these PartyTables seems to come into the mix as part of the Gobal address book.

does someone have a routine for importing addresses or can point me in the right direction

Thank you

Damon
Старый 19.02.2010, 12:36   #2  
Morpheus is offline
Morpheus
Участник
Аватар для Morpheus
Соотечественники
 
602 / 164 (7) ++++++
Регистрация: 30.03.2005
Адрес: Київ-København-Düsseldorf
Hi Damon!

You should simply specify address value to correspondent CustTable fields and call CustTable.insert() method. If you look into this method you will find the code which is caring about Global address book data consistency:

X++:
// Check if not associated to Party
if (!this.PartyId)
{
    // Create a Party entry for customer
    this.PartyId = DirParty::createPartyFromCommon(this).PartyId;
}
else
{
    DirParty::updatePartyFromCommonInsert(this.PartyId,this);
}

Best Regards!
Теги
address, custtable, import

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dianne Siebold: Import Credit Card Transactions for Expense Mgmt Blog bot DAX Blogs 0 19.12.2008 10:05
DynaMihamAX: Label import problem in Dynamics AX 4.0 Blog bot DAX Blogs 0 12.12.2008 13:05
Dynamics AX: Dynamics AX project success - Customer Ownership & Expectations Blog bot DAX Blogs 0 07.08.2007 21:10
Axapta Lessons: Using X++ Code during Data Import Blog bot DAX Blogs 0 28.10.2006 18:22
How to fix Customer Bank Accounts and link to a master table! (by CebuanoAko) Maxim Gorbunov DAX in English 0 22.03.2006 12:35
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:39.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.