I need the WeightGross field, which is a measure field, to be calculated from the sum of ProposedParcelQty and HandlingUnitTypeIdRef.TareWeight. How can I do this?


I need the WeightGross field, which is a measure field, to be calculated from the sum of ProposedParcelQty and HandlingUnitTypeIdRef.TareWeight. How can I do this?
Hi
Did you try using a computed field?
Eg:-
group NWeightandVolume for SalesPart {
computedfield WeightGross {
label = "Gross Weight";
value = "#{(HandlingUnitTypeIdRef.TareWeight + ProposedParcelQty)}";
type = Number;}
}
็Hi
Yes, I did. But I want it to show the Unit as well, like a measure. Do I need to do anything additional?
Hi
Then you can do it using a measure field like below.
E.g:
.client
@Override
group PricingGroup for SalesPart {
measure CTotal(PartCatalogRef.UomForWeightNet) {
label = "C Total";
}
}
.projection
@Override
entity SalesPart {
attribute CTotal Number {
fetch = "(List_Price + List_Price_Incl_Tax)";
editable = [false];
}}
Result
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.