venerdì 3 gennaio 2014

HOWTO: Determine whether a dimension for a specific field is active

InventTable inventTable;
InventDimGroupSetup inventDimGroupSetup;
InventDimGroupFieldSetup inventDimGroupFieldSetup;
inventDimGroupSetup = InventDimGroupSetup::newInventTable(inventTable);
inventDimGroupFieldSetup = inventDimGroupSetup.getFieldSetup(fieldNum(InventDim,WMSPalletId));
if (inventDimGroupFieldSetup.isActive())
{
     info(strFmt("The palletId dimension is active for dimension group   %1",inventDimGroupSetup.getStorageDimensionGroup()));));
}

Nessun commento:

Posta un commento

Dynamics AX Notes has a new home

I started this blog in January 2014, while working on Dynamics AX 2012. It was a notebook: a fix found at night, a snippet I didn't want...