How to fill in the [FILTER] part?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lj4353
    Senior Member
    • Nov 2023
    • 123

    How to fill in the [FILTER] part?

    I have created two entities, otherIncome and bonus, with a one-to-many relationship between them. I want to calculate the total sum of the amount field in the bonus table, provided that the paymentStatus field in the bonus table has the value "paid" (paymentStatus is of Enum type). I know I should use entity\sumRelated(LINK, FIELD, [FILTER]), but how should I fill in the [FILTER] part?​
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1620

    #2
    Filter is not mandatory. If you need the values of a filtered entity, see here:

    Comment

    Working...