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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.06.2016, 04:29   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Creating Cross Company Select Statements in X++
Источник: https://stoneridgesoftware.com/creat...atements-in-x/
==============

When creating a query in X++ by default that query will only return the values in the company that you are logged into.  If you desire to pull from multiple companies, you will need to use the crosscompany keyword.

CustTable custTable;while select crossCompany custTable {print custTable.accountNum; } pause;The above code section will print the account numbers for each row in the CustTable and will include data from all companies.

If you would like to restrict the companies that you want data from you can also define a container that will define which companies to search.

container desiredCompanies = ['Company1', 'Company2']; CustTable custTable; while select crossCompany : desiredCompanies custTable { print custTable.accountNum; } pause;The above code section will print the account numbers for each row in the CustTable for the two companies that we specified in the container.



Источник: https://stoneridgesoftware.com/creat...atements-in-x/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
stoneridgesoftware: Knowing When to Create a New Company or Company Dimension Entities in Dynamics NAV Blog bot NAV: Blogs 0 26.05.2016 18:11
atinkerersnotebook: Walkthrough & Tutorial Summary Blog bot DAX Blogs 1 09.09.2013 09:11
dynamicsaxtraining: Basic concepts Blog bot DAX Blogs 0 24.02.2012 07:12
dynamicscpm: Creating Consolidated Financial Statements using Management Reporter – owning less than 100% of a subsidiary (Part 7 of 7) Blog bot DAX Blogs 0 12.01.2012 02:14
dynamicscpm: Creating Consolidated Financial Statements using Management Reporter – Consolidating data across one or multiple Dynamics ERPs with the same chart of accounts and same fiscal periods (Part 1 of 7) Blog bot DAX Blogs 0 04.01.2012 06:12

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

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

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