Показать сообщение отдельно
Старый 18.01.2008, 13:30   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
ax-som: BOM explosion
Источник: http://ax-som.blogspot.com/2008/01/bom-explosion.html
==============

Do you want to get the BOMExplosion by code? If so, you could use the
class BOMSearch.

All you need is one method which will be called several times. Example:

X++:
void browseThroughBOM(BOMSearch _clsBOMSearch)
{
    BOM                          LtabBOM;
    InventTable             LtabInventTable;
    ;

    while (_clsBOMSearch.next())
    {
         LtabBOM = _clsBOMSearch.BOM();

        LtabInventTable =  LtabBOM.inventTable();
        info(LtabInventTable.ItemId);

         if(LtabInventTable.ItemType ==  ItemType::BOM)

        this.browseThroughBOM(BOMSearch::newBOMIdDate(LtabInventTable.BOMId(syst
        emDateGet()),  systemDateGet()));
    }
}
You can call this Method with BOMSearch as argument (e.g.
BOMSearch::newBOMIdDate(YourBOMId, systemDateGet()))

Источник: http://ax-som.blogspot.com/2008/01/bom-explosion.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.