Показать сообщение отдельно
Старый 04.12.2009, 15:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axaptapedia: Company
Источник: http://www.axaptapedia.com/Company
==============

Summary: New page: Data is stored within a company and heres a snippet to search for data within all companies on an installation. Note: the example searches for an productionorder. static void Searc...

Data is stored within a company and heres a snippet to search for data within all companies on an installation.

Note: the example searches for an productionorder.


static void SearchProductionOrder(Args _args)
{
DataArea DataArea;
ProdTable prodTable;
Boolean isFound;
;

while select DataArea where dataArea.isVirtual == NOYES::No
{
changecompany(Dataarea.Id)
{
prodTable = ProdTable::find("TO0006525");

if (prodTable)
{
info(strfmt("Found order: %1 in Company: %2",prodTable.ProdId,dataArea.Id));
isFound = true;
}
}
}

if(!isFound)
info("Order not found in any companies");

}




Источник: http://www.axaptapedia.com/Company
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.