Warning: in_array() expects parameter 2 to be array, string given in H:\root\home\bojensen-001\www\bojensen\wp-content\plugins\gallery-plugin\gallery-plugin.php on line 407
InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax « Casperkamal's Dynamics Ax blog – Bojensen Blogs
Bojensen Blogs

InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax « Casperkamal's Dynamics Ax blog

 

InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax

February 26, 2007casperkamalLeave a commentGo to comments

Hey,

Just found out something interesting, the blank inventDimid(With all Inventory Dimesions blank) "Axapta" is no more the same, now it is refferred to "AllBlank". I found it as i was digging to find the reason behind no records getting displayed in the "Item" form when I had records in the table.

The problem was the blank record in InventItemLocation, just a wrote a little job to get the things right.

Just copy and run it, if you find a bit lazy to write ….

static void JobChangeAxaptatoBlankInventDim(Args _args)
{
    InventItemLocation inventItemLocation;
    ;

    while select forupdate inventDimId from inventItemLocation
    where inventItemLocation.inventDimId == ‘Axapta’
    {
        ttsbegin;
        inventItemLocation.inventDimId = ‘AllBlank’;
        inventItemLocation.update();
        ttscommit;
    }
}

InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax « Casperkamal’s Dynamics Ax blog

Comments are closed.