Skip to main content
Solved

How to Computed Value in meaure filed?

  • July 14, 2025
  • 3 replies
  • 107 views

Forum|alt.badge.img+4

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

 

 

Best answer by asanka1055

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

 

3 replies

asanka1055
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • July 14, 2025

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;

   }
}


Forum|alt.badge.img+4
  • Author
  • Do Gooder
  • July 15, 2025

็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?


asanka1055
Hero (Partner)
Forum|alt.badge.img+9
  • Hero (Partner)
  • Answer
  • July 15, 2025

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