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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.05.2010, 23:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AX Sustained Engineering: Fill Utility incorrectly updating a field in a form datasource
Источник: http://blogs.technet.com/dynamicsaxs...atasource.aspx
==============

When using the fill utility in a form to change a field that is not the main data source of the form data in the main data source is updated.



Scenario:

A user wishes to update the cost price for an inventory item. Using the fill utility they select the appropriate field to update and follow the steps to use the fill utility. After completing the process the user finds that the cost price information did not change but the Item type for the item was updated.



The fill utility uses a field list to determine the field to update. In the case of secondary data sources the fill utility is not able to decipher the difference in the table being updated. In the case here, the cost price is field 3 in the InventTableModule. When the update takes place the 3rd field in the InventTable, Item Type, is being updated.



To implement code to block the fill utility from updating InventTable the following change can be made:



\Forms\SysRecordInfo\fillUtilityinit



...

if (fieldIdLocal == dictTableLocal.primaryKeyField() ||

fieldIdLocal == dictTableLocal.fieldName2Id('RECID') ||

fieldIdLocal == dictTableLocal.fieldName2Id('DATAAREAID') || //add Or condition

tblId == tablenum(InventTableModule)) //add condition for InventTableModuleTable



{

fillGrp.visible(false);

return;

}



Источник: http://blogs.technet.com/dynamicsaxs...atasource.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 27.05.2010, 23:05   #2  
Blog bot is offline
Blog bot
Участник
 
25,631 / 848 (80) +++++++
Регистрация: 28.10.2006
Dynamics AX Sustained Engineering: Fill Utility incorrectly updating a field in a form datasource
Источник: http://blogs.technet.com/b/dynamicsa...atasource.aspx
==============

When using the fill utility in a form to change a field that is not the main data source of the form data in the main data source is updated.



Scenario:

A user wishes to update the cost price for an inventory item. Using the fill utility they select the appropriate field to update and follow the steps to use the fill utility. After completing the process the user finds that the cost price information did not change but the Item type for the item was updated.



The fill utility uses a field list to determine the field to update. In the case of secondary data sources the fill utility is not able to decipher the difference in the table being updated. In the case here, the cost price is field 3 in the InventTableModule. When the update takes place the 3rd field in the InventTable, Item Type, is being updated.



To implement code to block the fill utility from updating InventTable the following change can be made:



\Forms\SysRecordInfo\fillUtilityinit



...

if (fieldIdLocal == dictTableLocal.primaryKeyField() ||

fieldIdLocal == dictTableLocal.fieldName2Id('RECID') ||

fieldIdLocal == dictTableLocal.fieldName2Id('DATAAREAID') || //add Or condition

tblId == tablenum(InventTableModule)) //add condition for InventTableModuleTable



{

fillGrp.visible(false);

return;

}




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

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05
Dynamics AX Sustained Engineering: Performance issue in "Open Transaction Edit" form Blog bot DAX Blogs 0 26.10.2009 20:05
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, время: 10:38.