Home
> Ax Technical > InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax
InventDim id blank from “Axapta” to “AllBlank” in Dynamics Ax
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;
;
{
InventItemLocation inventItemLocation;
;
while select forupdate inventDimId from inventItemLocation
where inventItemLocation.inventDimId == ‘Axapta’
{
ttsbegin;
inventItemLocation.inventDimId = ‘AllBlank’;
inventItemLocation.update();
ttscommit;
}
}
where inventItemLocation.inventDimId == ‘Axapta’
{
ttsbegin;
inventItemLocation.inventDimId = ‘AllBlank’;
inventItemLocation.update();
ttscommit;
}
}
………………what else ??????? will see….
Its still Axapta in my System. Can u tell me where did u get AllBlank ?
If you use a non upgraded data then you will get it, if in case you use an upgraded one then you wiill have it as "Axapta" only.
Hi 🙂
mmmm Interesting ….
I think you can also use the function :
InventDim::findOrCreateBlank()
Kind Regards,
Mkz.
—————————
http://www.trucosax.com
A Dynamics Ax (Axapta) tricks site in Spanish language 🙂