Home

Thursday, May 29, 2014

How to print an Item with its Size, Color and Configuration in AX 2009

static void PrintItemWithConfigSizeColor(Args _args)
{
    InventTrans         _inventTrans;
    InventDim           _inventDim;
    ;

    while select * from _inventTrans join  _inventDim group by _inventTrans.ItemId ,_inventDim.InventColorID, _inventDim.InventSizeId,_inventDim.configId
                                                               where _inventDim.inventDimId == _inventTrans.inventDimId
        {
            print _inventTrans.ItemId;
            print _inventDim.InventColorId;
            print _inventDim.InventSizeId;
            print _inventDim.configId;

         }
         Pause;
}

No comments:

Post a Comment