web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

InventDimDevelop macro

Volodymyr Giginiak Profile Picture Volodymyr Giginiak Microsoft Employee
InventDimDevelop macro is used to mark places in the application where specific inventory dimension(s) are referred from the code explicitly. The idea behind it is to help developers to find all the places that potentially have to be updated if a new inventory dimension is added.

For example, the following code should be marked with InventDimDevelop since size, color and configuration are referred explicitly:

#InventDimDevelop

this.ConfigId = inventDimCombination.ConfigId;
this.InventSizeId = inventDimCombination.InventSizeId;
this.InventColorId = inventDimCombination.InventColorId;

However, the following code processes all dimensions in a loop, so newly added dimension will be handled automatically. No need for InventDimDevelop.

container dimFields = InventDim::dimFieldList();
int h, y;
;

for (h = 1; h <= conlen(dimFields); h++)
{
    y = conpeek(dimFields, h);
    this.(y) = _inventDim.(y);
}

This was originally posted here.

Comments

*This post is locked for comments