Yes Dear solved the problem!
Hi Wahdat,
Is your question answered now or do you still need some more help?
public void update_Dimension()
{
InventTable inventTable;
EcoResTrackingDimensionGroup ecoResTrackingDimensionGroup;
EcoResTrackingDimensionGroupItem ecoResTrackingDimensionGroupItem;
EcoResTrackingDimensionGroupProduct ecoResTrackingDimensionGroupProduct;
select * from ecoResTrackingDimensionGroup where ecoResTrackingDimensionGroup.Name == 'Serial';
select * from inventTable where inventTable.ItemId == 'testproduct';
ttsBegin;
select forUpdate ecoResTrackingDimensionGroupProduct
where ecoResTrackingDimensionGroupProduct.Product == inventTable.Product;
ecoResTrackingDimensionGroupProduct.TrackingDimensionGroup = ecoResTrackingDimensionGroup.RecId;
ecoResTrackingDimensionGroupProduct.update();
select forUpdate ecoResTrackingDimensionGroupItem
where ecoResTrackingDimensionGroupItem.ItemDataAreaId == inventTable.dataAreaId
&& ecoResTrackingDimensionGroupItem.ItemId == inventTable.ItemId;
ecoResTrackingDimensionGroupItem.TrackingDimensionGroup = ecoResTrackingDimensionGroup.RecId;
ecoResTrackingDimensionGroupItem.update();
ttsCommit;
Actually i was asking about this! Done Thanks for your reply
Hi Wahdat,
Can you elaborate on what you mean with the x++ job? Note that you can set the dimensions on two levels:
- Global product
- Released product.
If you set it on the global product, you can't make distinctions on released products. If you have a dimension group on a released product, you can't change it on the global product. The error is trying to tell you that.
To be able to change the dimension group, you now need to go to the released products form; not the (global) products.
If you need to have the dimensions set on the global product, you need to change the x++ job to save the dimension groups in a table related to the product. (EcoResTrackingDimensionGroupItem versus EcoResTrackingDimensionGroupProduct)
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156