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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.07.2010, 19:06   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AX Sustained Engineering: Unexpected voucher number proposed when creating a new journal line after sorting the grid in a journal
Источник: http://blogs.technet.com/b/dynamicsa...a-journal.aspx
==============

Scenario:

When creating a new line in a journal after sorting the data in the grid users may see an unexpected voucher number proposed for the new line.

Resolution:

To resolve the issue 3 objects require a change (note that the affected journal will determine the Form that requires the change).

1. \Forms\LedgerJournalTransVendInvoice\Methods\ClassDeclaration

Before:

SOURCE #ClassDeclaration

class FormRun extends ObjectRun

{

QueryBuildRange ledgerJournalTransRange;

LedgerJournalEngine ledgerJournalEngine;

……



After:

SOURCE #ClassDeclaration

class FormRun extends ObjectRun

{

RecId currentRecordForCreate;



QueryBuildRange ledgerJournalTransRange;

LedgerJournalEngine ledgerJournalEngine;

……

2. \Forms\LedgerJournalTransVendInvoice\Data Sources\LedgerJournalTrans\Methods\create()

Before:



try

{

ledgerJournalTransEntityManager.getFormDataEventManager().beginEntityCreateEvent();

journalFormTrans.datasourceCreatePre();

……….



After:



try

{

if (currentRecordForCreate != 0)

{

ledgerJournalTrans_ds.findRecord(LedgerJournalTrans::findRecId(currentRecordForCreate, false));

}



ledgerJournalTransEntityManager.getFormDataEventManager().beginEntityCreateEvent();

journalFormTrans.datasourceCreatePre();

……….

3. \Forms\LedgerJournalTransVendInvoice\Methods\task()



New Method:



public int task(int _taskId)

{

int ret;

;



if (_taskId == 260)

{

currentRecordForCreate = ledgerJournalTrans.RecId;

}



ret = super(_taskId);



return ret;

}














Источник: http://blogs.technet.com/b/dynamicsa...a-journal.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics AX Sustained Engineering: One voucher number only and Transaction Date in Journals Blog bot DAX Blogs 0 27.05.2010 23:05
Dynamics AX Sustained Engineering: One voucher number only and Transaction Date in Journals Blog bot DAX Blogs 0 22.05.2010 04:11
Dynamics AX Sustained Engineering: Microsoft Dynamics AX 4.0 and AX 2009 are compatible with Microsoft Windows 7 and Microsoft Windows Server 2008 R2 Blog bot DAX Blogs 0 22.09.2009 04:06
Dynamics AX Sustained Engineering: Dynamics AX 2009 Patching Blog bot DAX Blogs 0 08.10.2008 10:05
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05

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

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

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