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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.04.2011, 07:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,526 / 847 (80) +++++++
Регистрация: 28.10.2006
kranthiax: Updating The vendTrans Table
Источник: http://kranthiax.blogspot.com/2011/0...ans-table.html
==============

Hi the below code help you to insert custom created field values from a journal(LedgerJournalTrans) to the vendTrans table.

The insertion and updation of the vendTrans fields is done with the help of CustVendTrans Map

Follow the below setups when you add a new field to the ledgerJournalTrans and update it to vendTrans table...


1. Add the field to the custVendTrans Map - before that add field to ledgerJournalTrans and vendTrans.
2. Create a new mapping in the VendTrans of custVendTrans Map

CustVendTrans.ProjId == VendTrans.ProjId

3. Class - CustVendVoucher
In the Class declaration add a variable

ProjId updateProjId;///Kranthi

4. Add a new method to CustVendVoucher class

ProjId parmUpdateProjId(ProjId _projId = updateProjId)
{
;
updateProjId = _projId;
return updateProjId;
}

5. In the initCustVendTrans methid of CustVendVoucher class add this line

custVendTrans.ProjId = updateProjId;

6. Class - VendVoucher -> in the newVendVoucherJournal method of vendVoucher class place the below line of code

vendVoucher.parmUpdateProjId(_ledgerJournalTrans.ProjId);

7. Compile the two classes

Hope this code will help you...


Источник: http://kranthiax.blogspot.com/2011/0...ans-table.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Халтура в AX2009: идентификаторы из USR в GLS, GLP и даже SYS-слоях EVGL DAX: Программирование 2 21.02.2011 19:44
emeadaxsupport: Identifying damaged Table objects in the AOT MetaData Blog bot DAX Blogs 0 16.03.2010 21:05
PatrickChua: Temporary table Blog bot DAX Blogs 0 04.05.2009 14:05
axaptapedia: Table Methods Generator Blog bot DAX Blogs 0 13.02.2009 02:05
PatrickChua: Temporary table Blog bot DAX Blogs 0 28.10.2006 18:14

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

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

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