bom version entity does not contain inventstyleid field i want to import it into bom version
bom version entity does not contain inventstyleid field i want to import it into bom version
Hi Amr,
I think Will did duplicate the standard entity. If you can find the standard BOM entity and have a Visual Studio project open based on a new extension model, you can right-click the entity and choose to duplicate the current entity into the open project.
Hi Will Wu
Thanks for replay
I have add inventStyleid field in DMFBOMVersionEntity table
and modify method generateInventDimID in DMFBOMVersionEntityClass
/// <summary>
/// Find(s) or creates and set the Invent dim.
/// </summary>
/// <param name="_stagingToTarget">
/// Indicates if the method is called to generate target field values (true) or staging table values (false).
/// </param>
/// <returns>
/// Returns set of inventDim data as a container.
/// </returns>
[DMFTargetTransformationAttribute(true),DMFTargetTransformationDescAttribute("@DMF349"),
DMFTargetTransformationSequenceAttribute(2)
,DMFTargetTransFieldListAttribute([fieldStr(DMFBOMVersionEntity,ConfigId),fieldStr(DMFBOMVersionEntity,InventColorId),fieldStr(DMFBOMVersionEntity,InventSiteId),fieldStr(DMFBOMVersionEntity,InventSizeId),fieldStr(DMFBOMVersionEntity,InventStyleId)])
]
public container generateInventDim(boolean _stagingToTarget = true)
{
container res;
if (_stagingToTarget)
{
inventDim = DMFDimensionHelper::generateInventDimID(entity);
res = [inventDim.InventDimId];
}
else
{
inventDim = InventDim::find(target.InventDimId);
res = [
inventDim.ConfigId,
inventDim.InventColorId,
inventDim.InventSiteId,
inventDim.InventSizeId,
inventDim.InventStyleId];//********amr******
}
return res;
}
but where i can find the standard data entity (bomversion entity) to duplicate it
how can i get this image you sent
Hi amr abdelaziz,
You can create extension of standard data entity and add custom field in data entity or duplicate the original data entity and add your new field in the new data entity, it depends on what you want to achieve.
You can drag the Inventstyleid field under the inventdim data source in the BOMBillOfMaterialsVersionV2Entity data entity into the field, and then create the field in the staging table.
Hi Amr,
If something is missing, it would be possible to customize the entity and add the missing inventory dimension. This requires development skills.
André Arnaud de Cal...
292,884
Super User 2025 Season 1
Martin Dráb
231,754
Most Valuable Professional
nmaenpaa
101,156
Moderator