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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.04.2007, 03:08   #1  
Blog bot is offline
Blog bot
Участник
 
25,506 / 847 (80) +++++++
Регистрация: 28.10.2006
Arijit Basu: New Number Sequence for new AX Module
Источник: http://daxguy.blogspot.com/2007/04/n...ax-module.html
==============

Sometimes back I had posted about creating new Numbersequences for existing AX Modules. However say someone wants to create a new module in AX and wants the same setup /Parameters form in the new module just like AX base modules. Say you want to create a new module called Pre Purchase, and for simplicity, we will create just 1 new Number sequence. Here’s what to do:-

1. Edit the baseEnum NumberSeqModule, adding a reference for your new module (Pre Purchase)


2. Create a new EDT say PurchaseRequisitionId which will be used in the module

3. Create new class NumberSeqReference_PrePurchase that extends NumberSeqReference
The 3 methods in that class are:
public class NumberSeqReference_PrePurchase extends NumberSeqReference
{
}
protected void loadModule()
{
NumberSequenceReference numRef;

;
/* Setup PurchaseRequisitionId */

numRef.dataTypeId = typeid2extendedtypeid(typeid(PwC_PurchaseRequisitionId));
numRef.referenceHelp = literalStr("Unique key for Purchase Requisition identification. The key is used when creating new Purchase Requisitions."); // Use Labels here
numRef.wizardContinuous = true;
numRef.wizardManual = NoYes::No;
numRef.wizardAllowChangeDown = NoYes::No;
numRef.wizardAllowChangeUp = NoYes::No;
numRef.sortField = 1;
this.create(numRef);
}

static NumberSeqModule numberSeqModule()
{
return NumberSeqModule::PrePurchase;
}



4. Modify the NumberSeqReference Class for the following methods
\Classes\NumberSeqReference\moduleList
Add the following code
// PrePurchase Begin
moduleList += NumberSeqReference_PrePurchase::numberSeqModule();
// PrePurchase End

\Classes\NumberSeqReference\construct
Add the following code // Pre Purchase addition begin
case (NumberSeqReference_PrePurchase::numberSeqModule()): return new NumberSeqReference_PrePurchase(_module);
// Pre Purchase addition end
5. Look at existing Parameters Forms in AX \Forms\LedgerParameters

6. The final Output
Happy DAX-ing



Источник: http://daxguy.blogspot.com/2007/04/n...ax-module.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Arijit Basu: AX 2009 Document Management & MOSS / WSS Blog bot DAX Blogs 0 23.01.2009 01:07
Arijit Basu: AX 2009 Documents Blog bot DAX Blogs 0 30.08.2008 13:05
Arijit Basu: AX 2009 - Quick Overview Blog bot DAX Blogs 4 19.05.2008 14:47
Arijit Basu: Reporting & BI in AX: An Overview [Level 100] Blog bot DAX Blogs 0 07.01.2008 16:01
Dynamics AX: Microsoft Dynamics AX (DAX): Known Issues when upgrading to Microsoft Dynamics™ AX 4.0 - Arijit Basu | AX MVP Blog bot DAX Blogs 0 31.05.2007 03:30

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

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

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