Источник:
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