Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    splitCriteria with "between" criterion

    Hello, I just noticed that when I've got an AdvancedCriteria which contains a "between" criterion, IE:

    Code:
    {fieldName:"DATA_INIZIO", operator:"between", start:startDate, end:endDate}
    splitCriteria doesn't work, and I see this message logged:

    Code:
    splitCriteria: advanced criteria second-level operator, and, not supported.
    is this use case actually not supported?

    #2
    splitCriteeria produces a simple Criteria, and there is no way to represent the "between" operator in simple Criteria. But if you tell us what you need to achieve, we can point out another approach.

    Comment


      #3
      Thanks for your quick reply, and for pointing out the reason, at first I didn't notice it in the doc.
      Actually it's an old piece of code, probably written when implicitCriteria wasn't available, so now I've restructured it to use it.

      Comment

      Working...
      X