Showing posts with label field. Show all posts
Showing posts with label field. Show all posts

Thursday, 11 December 2014

Get Inventory On Hand



static void InventoryOnHand(Args _args)
{

    InventDim inventDim;
    InventDimParm inventDimParm;
    InventOnHand inventOnHand;
    InventTable inventtable;
    ItemId itemId;
    ;

    itemId = '28-010020';

    inventDim.InventSiteId = "1";   // For site # 1
    inventDimParm.initFromInventDim(inventDim);

        inventOnHand = InventOnHand::newItemDim(itemId, inventDim, inventDimParm);
        if (inventOnHand.availPhysical())
        {
            info(strfmt("Item Id %1 Available Physical %2",
                inventtable.ItemId,inventOnHand.availPhysical()));
        }


}

Wednesday, 22 October 2014

Unretrieved

Unretrieved Data

If the data shown on a table based datasource is showing as 'unretrieved' then follow these steps;

1.- Recompile and restore original table. Check fields with Table explorer; if table explorer doesn't show your field(s) properly, anything based on that table won't either. So, if this fails, go to step 3

2.- Recompile and restore form. Generate incremental CIL. Check it. If fail, go to step 3

3.- Restart Ax client and retry steps 1+2. If fail, go to 4

4.- Restart AOS. Retry steps 1+2.