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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.05.2012, 13:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-erp: Appending rows to a Grid whose data source is a Temporary table
Источник: http://microsoft-dynamics-ax-erp.blo...hose-data.html
==============


void method()
{
Table origTable, newTable;
;


// Copy original contents
for ( origTable = Table_DS.getFirst();

origTable;
origTable = Table_DS.getNext())
{
newTable.clear();
newTable.BOMId = origTable.BOMId;
newTable.ItemId = origTable.ItemId;
newTable.ItemName = origTable.ItemName;
newTable.ziMessage = origTable.ziMessage;
newTable.insert();
}
// Append new record data
newTable.clear();
newTable.BOMId = "test2";
newTable.ItemId = "test2";
newTable.ItemName = "test2";
newTable.ziMessage = "test2";
newTable.insert();


Table.setTmpData( newTable);


Table_DS.executeQuery();
}




Источник: http://microsoft-dynamics-ax-erp.blo...hose-data.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: Overview of AX build numbers Blog bot DAX Blogs 3 24.05.2012 19:44
ax-erp: Code that must not be put in data source active() method Blog bot DAX Blogs 2 27.04.2012 18:44
emeadaxsupport: Multiple database data files, table partitioning using multiple file groups… and Microsoft Dynamics AX 2009 Blog bot DAX Blogs 3 04.10.2011 16:30
emeadaxsupport: List of fixes that improve performance of certain features in Dynamics AX 2009 Blog bot DAX Blogs 0 13.10.2009 19:06
axStart: Change data on a data source on a Form Blog bot DAX Blogs 0 04.09.2008 15:05

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 08:12.