16.11.2010, 22:11 | #1 |
Участник
|
dax-ideas: Creating a new Item through Code
Источник: http://dax-ideas.blogspot.com/2010/1...ough-code.html
============== For Creating a new Item in AX 2009 we have to make a entry in four imp tables They are 1) InventTable 2) InventTableModule 3) InventItemLocation 4) InventTxt Below is a simple job which will create a new Item in AX 2009 static void Item(Args _args) { InventTable inventTable; InventTableModule inventTableModule; InventItemLocation inventItemLocation; InventTxt inventTxt; int counter; ; inventTable.initValue(); inventTable.ItemId = "NIK-1000"; if(InventTable::exist(inventTable.ItemId)) { throw error ("Item already exist,You cannot create duplicate items"); } else { inventTable.ItemGroupId = "Television"; inventTable.ItemName = "LCD Plasma"; inventTable.ModelGroupId = "STD Cost"; inventTable.DimGroupId = "N-W"; inventTable.ItemType = ItemType::Item; inventTable.insert(); } <span style="color: blue;"><strong>for(counter=0; counter
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
За это сообщение автора поблагодарили: EVGL (-3). |