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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.12.2013, 13:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,493 / 847 (79) +++++++
Регистрация: 28.10.2006
Pawan's Ax blog: How to release item using x++code in ax2012
Источник: http://pawansaxblog.blogspot.com/201...-xcode-in.html
==============

How to release a item in Ax2012 through x++ code. Below code I have used in one of my requirement

public void releaseItem(DataAreaId _dataAreaId)
{
EcoResProduct product;
InventTable inventTable;
;

select firstOnly RecID from product
where product.DisplayProductNumber == this.getItemId();

if (product.RecId)
{
inventTable = inventTable::findByProductInCompany(product.RecId, _dataAreaId);
if (!inventTable.RecId)
{
EcoResProductReleaseManagerBase::releaseProduct(product.RecId,CompanyInfo::findDataArea(_dataAreaId).RecId);
}
}

}


Источник: http://pawansaxblog.blogspot.com/201...-xcode-in.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Pawan's Ax blog: How to create Product master using x++ code Blog bot DAX Blogs 0 09.12.2013 13:11
atinkerersnotebook: New Dynamics AX Blog Posts and Blueprints Available Blog bot DAX Blogs 0 11.11.2013 21:11
DynamicsAxSCM: Troubleshooting the product release process Blog bot DAX Blogs 0 05.10.2012 17:11
Pawan's Ax blog: How To Cache A object Globally in Ax Blog bot DAX Blogs 1 08.08.2010 23:13
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, время: 21:56.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.