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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 28.05.2007, 14:51   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Arijit Basu: NumberSequences:: Deep Dive
Источник: http://daxguy.blogspot.com/2007/05/n...deep-dive.html
==============

Previously I had posted about how to create new NumberSequences in AX for both existing & new modules. I'll share some important objects about NumberSequences.Number sequences handle the automatic allocation of ID numbers, vouchers, andjournal numbers.
A number sequence is created under
MAIN MENU->BASIC->SETUP->NUMBERSEQUENCES->NUMBER SEQUENCE.

From a developers point of view, these are the tables which are important.

NumberSequenceTable contains the definitions of each number sequence.
NumberSequenceList holds numbers for continuous number sequences that have not been completed or are currently reserved.
NumberSequenceReference holds which number sequence is used for which function.
NumberSequenceGroup is a list of number sequence groups.
NumberSequenceGroupRef contains the number sequence references specific to a group.
NumberSequenceTTS holds the transaction id of a number before it has been completely assigned. It is used during the clean up process, in case of a system crash.
NumberSequenceHistory holds a log of all changes made to the number sequence.

From a developers point of view, these are the classes which are important.

NumberSeq assigns numbers and vouchers, handles continuous number sequences, and calls clean up when appropriate.
NumberSeq_Fast is used for number sequences that are not continuous. It does not keep a record of the status or store transaction ids for later clean up, and is better performance wise.
NumberSeqCleanUp looks for numbers in the list that have not been completed, looks for the session that created them, and, if the session is no longer active, frees up the number for later use.
NumberSeqDataArea is used in the clean up process.
NumberSeqFormHandler is used whenever a number sequence assigns a number in a form. It handles records being deleted and ensures that two users cannot use the same number.
NumberSeqReference creates the link between the function and the number sequence. NumberSeqReference is the super class used, and there is a sub class for each module.
NumberSeqNumCache contains the method to manipulate the cache of reserved numbers.

Happy Numbersequencing :)

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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Arijit Basu: Nice Sharepoint 2007 Training for EP Developers Blog bot DAX Blogs 0 09.12.2007 00:33
Arijit Basu: Copenhagen Convergence Review Blog bot DAX Blogs 3 07.11.2007 11:56
Arijit Basu: Post Ledger Transactions via X++ Blog bot DAX Blogs 0 27.07.2007 17:30
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:55.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.