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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 23.09.2004, 13:02   #8  
simply2double is offline
simply2double
Участник
Аватар для simply2double
 
556 / 19 (2) ++
Регистрация: 08.09.2004
Адрес: alfa cen
первый вариант был такой... так сказать SQL интуитивный:

PHP код:
insert_recordset tmp_Table (TransTableID,TransRecID)
         
select TransTableID,TransRecID
              from  MarkUpTrans 
              join VendInvoiceTrans 
              where MarkUpTrans
.TransRecId == VendInvoiceTrans .RecId &&
                          
VendInvoiceTrans.InvoiceId == InvoiceId
но от этого ни чего не меняется...

а изменил прочитав во это:



Код:
Insert Recordset
Insert Recordset copies data from one or more tables directly into one resulting destination table - on a single server trip.

Syntax
     INSERT_RECORDSET <destination-table> ( <list-of-fields> )

        SELECT <list-of-fields1> FROM <source-table> [ WHERE <where-clause> ]

            [ JOIN <list-of-fields2> FROM <joined-source-table> [ WHERE <joined-where-clause> ]]

 

The <list-of-fields> in the destination table must match the list of fields in the source tables. Data is transferred in the order it appears in the list of fields. Fields in the destination table that are not present in the list of fields, are assigned zero-values as in other places in X++. System fields, including Recid, are assigned transparently by the kernel in the destination table.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
method insert() when insert table from outside susenyudha DAX in English 1 29.08.2008 18:51
axaptapedia: Howto insert a menu reference into the MainMenu Blog bot DAX Blogs 0 03.08.2007 23:20
Про Insert, DoInsert и IAxaptaRecord::Insert murad DAX: Программирование 5 23.05.2006 12:26
Не найден исполнимый код метода insert Александр Костоусов DAX: Программирование 10 03.09.2004 16:47

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

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

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