Skip to main content

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?

 

WeightGross = ProposedParcelQty + HandlingUnitTypeIdRef.TareWeight

 

 

Hi ​@mardede29 ,

Did you try using a computed field?

Eg:-

group NWeightandVolume for SalesPart {
   computedfield WeightGross {
      label = "Gross Weight";
      value = "#{(HandlingUnitTypeIdRef.TareWeight + ProposedParcelQty)}";
      type = Number;

   }
}


็Hi ​@asanka1055 
Yes, I did. But I want it to show the Unit as well, like a measure. Do I need to do anything additional?


Hi ​@mardede29 ,

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

 


Reply