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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 13.12.2013, 07:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
ax_gfm_framework_team: Clear the dimension set balance ledger dimension cache
Источник: http://blogs.msdn.com/b/ax_gfm_frame...ion-cache.aspx
==============

The dimension set balance (DSB) rebuild and update will generate the ledger dimensions specific to the dimension set from the ledger dimensions in the GL. The dimension set ledger dimensions that are generated are cached to increase the performance of the DSB rebuild and update.

The most common use of the DSB is in the trial balance list page and report. If you have problems with either of these and performing a DSB rebuild does not resolve the problem, clearing the dimension set ledger dimension cache before performing another DSB rebuild for that dimension set is a logical next step.

Use the following job (also attached) to clear the dimension set ledger dimension cache for the specified dimension set.

Don't forget to rebuild the DSB for the dimension set after running the job.



static void DimSet_ClearLedDimCache(Args _args)
{
DimensionHierarchy dh;
DimensionFocusLedgerDimensionReference dimSetLedDimRef;
boolean doSave;
Name dimSetName;

// enter the dimension set name
dimSetName = '';

// change to true to commit the changes
doSave = false;

if (strLen(dimSetName) == 0)
{
throw error('Dimension set name not specified.');
}

dh = DimensionHierarchy::findByTypeAndName(DimensionHierarchyType::Focus, dimSetName);
if (dh == null)
{
throw error(strFmt('Dimension set %1 does not exist.', dimSetName));
}

if (dh.FocusState == DimensionFocusBalanceInitializationState::NotInitialized)
{
info(strFmt('The balances for dimension set %1 are not initialized.', dimSetName));
}

ttsBegin;

delete_from dimSetLedDimRef
where dimSetLedDimRef.FocusDimensionHierarchy == dh.RecId;

info(strFmt('Removed: %1', dimSetLedDimRef.RowCount()));

if (doSave)
{
info('comitted');

ttsCommit;
}
else
{
info('aborted');

ttsAbort;
}
}






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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ax_gfm_framework_team: Ledger account combinations - Part 6 (Ledger dimensions (B)) Blog bot DAX Blogs 0 16.02.2013 08:08
ax_gfm_framework_team: The Microsoft Dynamics AX 2012 extension framework – Part 3 Blog bot DAX Blogs 0 14.11.2012 01:12
ax_gfm_framework_team: The Microsoft Dynamics AX 2012 extension framework – Part 2 Blog bot DAX Blogs 0 14.11.2012 01:12
dax-lessons: Segmented Entry Control on Forms in Dynamics AX 2012 [Ledger Dimension/Ledger account lookup X++] Blog bot DAX Blogs 0 12.11.2011 19:11
Dianne Siebold: Update on the Dynamics AX SDK Team kashperuk DAX Blogs 1 16.10.2007 08:23

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

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

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