preloader-matrix

Alfasith

Relation between InventTable & InventDim table in AX 2012

Hi,

static void AlfasithInventDimInventTableRelation(Args _args)
{
    InventTable             InventTable;
    InventDim               InventDim;
    InventDimCombination    InventDimCombination;
    PriceDiscTable          PriceDiscTable;

    while select InventDimId from InventDim where InventDim.InventColorId == ” “
                       &&   InventDim.InventStyleId == ” “
                       &&   InventDim.configId == ” “
                       &&   InventDim.InventSizeId == ” “
        {
            select InventDimCombination where InventDimCombination.InventDimId == InventDim.inventDimId
                                        && InventDimCombination.ItemId == “1035”;
            if(InventDimCombination)
            {
                print InventDimCombination.ItemId;
                print InventDimCombination.InventDimId;
            }
        }
Pause;
}

Regards,

Share on email
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Leave a Reply

Your email address will not be published.