Report Complex Filter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sloff
    Member
    • Feb 2018
    • 47

    Report Complex Filter

    Hi

    I'm trying to setup a filter in a report that compares two dates with each other, but I keep receiving an error, I'm not sure how the expression should be. Please see an example attached
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    Such are expressions not supported. Formula can not handle record values in this case.

    You can create not storable field that will calculate difference between two columns and then it can be utilized in the filter.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Sloff
      Member
      • Feb 2018
      • 47

      #3
      That would be perfect, could you point me towards an example of such a field (non storable and calculated by other values)?

      Comment

      • Sloff
        Member
        • Feb 2018
        • 47

        #4
        It seems that I should mark it as notStorable within the entityDef, and then set a value within the Service's loadAdditionalFields method, is that correct?

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          Try this way
          There is an entity having 2 float fields, A & B how can i set the filter of the report to show record which value of field A is greater than that of field B?

          Comment

          • Sloff
            Member
            • Feb 2018
            • 47

            #6
            Awesome, thanks Tanya and Yuri

            Comment

            Working...