Announcement

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

    Adding new Date compare criteria to Advanced Filter

    Hi, I was looking at your Advanced Filter here:
    https://www.smartclient.com/smartcli...=filterBuilder

    I would like to be able to do date comparisons on a date field like Nationhood in the example. The standard options for comparison include N days from Now, N weeks from Now, and N months from Now.

    How can we include options for N minutes from Now as well in that drop-down?

    #2
    See RelativeDateItem.presetOptions - this is where those options come from. The FilterBuilder uses a DateRangeItem, which has two RelativeDateItem AutoChildren (fromField/toField). FilterBuilder.getEditorType() would allow you to inject a custom DateRangeItem subclass where you have overridden the default presetOptions.

    Comment

    Working...
    X