The constraint based configuration is saved in relation to the configuration-number (InventDim.ConfigId), however all you see in the On-Hand form is the number.
If you want to see the full configuration that was entered by the user, you can add a simple button to the On-hand form (InventOnhandItem) and override the clicked() method with the following code:
void clicked()
{
PCExecuteVariantConfiguration executeVariantConfiguration;
ProdTable tmpProdTable;
tmpProdTable.InventDimId = InventDim::findOrCreate(inventDim).InventDimId;
tmpProdTable.ItemId = InventSum.ItemId;
if(PCRuntimeLibrary::isConstraintBasedConfigurable(InventSum.ItemId))
{
executeVariantConfiguration = PCExecuteVariantConfiguration::execute(tmpProdTable, InventSum.ItemId, inventDim.ConfigId);
}
}
Result:



Leave a Reply