Skip to main content
Question

Conditional Total On Form

  • January 8, 2024
  • 0 replies
  • 57 views

Forum|alt.badge.img+8

Hi Guys,

 

I am looking to implement a new data field which calculates totals based on whether a particular detail is true.

 

My current code is:

[PXFormula(typeof(Case<Where<CROpportunityProducts.usrIsPanel.IsEqual<True>>>.
Sum(CROpportunityProducts.quantity)))]

Not sure if I am using the correct syntax for the PXFormula attribute as i have never used it before.

 

Thanks in advance all!

Aleks