Announcement

Collapse
No announcement yet.

How to fill in the [FILTER] part?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?​

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

    Comment

    Working...
    X