static void setDefualtDimensionSO(Args _args)
{
DimensionAttribute dimensionAttribute;
DimensionAttributeValue dimensionAttributeValue;
DimensionAttributeValueSetStorage dimensionStorage;
SalesTable salesTable;
Counter i;
ttsBegin;
select forupdate salesTable
where salesTable.RecId == 5637146827;
dimensionStorage = DimensionAttributeValueSetStorage::find(salesTable.defaultDimension);
dimensionAttribute = DimensionAttribute::findByName('Handling');
dimensionAttributeValue = DimensionAttributeValue::findByDimensionAttributeAndValue(dimensionAttribute, 'BROK', true, true);
dimensionStorage.addItem(dimensionAttributeValue);
salesTable.defaultDimension = dimensionStorage.save();
salesTable.update();
ttsCommit;
}
No comments:
Post a Comment