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

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

February 26, 2007 Leave a comment Go 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;
    }
}
 
 ………………what else ??????? will see….
  1. Arijit wrote:
    February 26, 2007 at 7:09 pm

    Its still Axapta in my System. Can u tell me where did u get AllBlank ?

  2. Kamal
    February 27, 2007 at 7:09 pm

    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.

  3. No name
    February 27, 2007 at 7:09 pm

    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 🙂

  1. November 3, 2011 at 3:14 pm

Leave a comment