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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.09.2013, 23:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Caching display methods with Client modifier
Источник: http://alexvoy.blogspot.com/2013/09/...th-client.html
==============

Caching display methods can increase performance in some cases. But be cautious when you are adding them in datasource Init method. If by mistake you add one method that defined with Client modifier on the table, it will fail right calculations for them all for the first line in the grid.

For example, you have one method on the table with Client modifier:

display client Integer isLineChanged()
{
#ResAppl

if (this.Changed)
{
return #ImageInfo;
}

return 0;
}

On the form you add this method amongst others in cache (not the last one!):

// Form DataSource Init method
public void init()
{
super();
this.cacheAddMethod(tablemethodstr(myTable, errorExist));
this.cacheAddMethod(tablemethodstr(myTable, isLineChanged));
this.cacheAddMethod(tablemethodstr(myTable, itemName));
this.cacheAddMethod(tablemethodstr(myTable, categoryName));
this.cacheAddMethod(tablemethodstr(myTable, subCategoryName));
}
You will get the following result because all of these methods will be calculated based on client side buffer that is not fetched yet.


It does not matter if you place a cached display method in the form or not -- it is calculated anyway.


Источник: http://alexvoy.blogspot.com/2013/09/...th-client.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
За это сообщение автора поблагодарили: Ivanhoe (0).
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
axperf: Improving SSRS Query-based Report Performance by not Using Display Methods - Part 3 Blog bot DAX Blogs 0 23.07.2013 21:12
Dynamics AX Sustained Engineering: Enterprise Portal will not display the packing slip for more than one Sales Order, when packing slip updating the Sales Orders at the same time, unlike rich client. Blog bot DAX Blogs 0 13.02.2013 10:11
ax-erp: What methods are called when a runbaseBatch process is executed? Blog bot DAX Blogs 0 13.06.2012 16:11
Microsoft Dynamics CRM Team Blog: Building Rich-Client Dashboards for Microsoft Dynamics CRM with Windows Presentation Foundation Blog bot Dynamics CRM: Blogs 1 31.03.2009 13:24
axaptapedia: Table Methods Generator Blog bot DAX Blogs 0 13.02.2009 02:05

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

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

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