Default Filters

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • rodrigocoelho
    replied
    Originally posted by yurikuzn
    It won't work for autocomplete.
    Thanks for taking time to answer.

    Unfortunately, without changing the Autocomplete behavior, the default filter is useless for me. I hope you will have an idea to implement a kind of "ARCHIVE old records" on the future versions.
    My only chance.

    Thanks Yuri.

    Leave a comment:


  • yuri
    replied
    It won't work for autocomplete.

    Leave a comment:


  • rodrigocoelho
    replied
    Originally posted by yurikuzn
    custom/Espo/Custom/Resources/metadata/clientDefs/YourEntityType.json


    Primary filter. 'active' is the name of primary filter (dropdown on the left).

    Code:
    {
    "defaultFilterData": {
    "primary": "active"
    }
    }
    Field filter.
    Code:
    {
    "defaultFilterData": {
    "advanced": {
    "orderDate": {
    "type": "lastSevenDays"
    }
    }
    }
    }
    Hi Yuri, does it would work for INSTANT SEARCH on that view as well?

    Thanks

    Leave a comment:


  • khopper
    replied
    Putting the negative did not work as expected - just FYI for others
    Also - Where did "Clear Local Cache" go? - (to get the default filter back I have to clear the browser history)

    This is what did work:
    Code:
    "defaultFilterData": {
               "advanced": {
                    "orderdate": {
                            "type": "lastXDays",
                            "number": 45,
                            "value": 45
                     }
                }
         }

    Leave a comment:


  • yuri
    replied
    Code:
    "type": "lastXDays",
    "number": -45,
    "value": -45

    Leave a comment:


  • khopper
    replied
    What would the syntax be for the last 45 days in the filter?
    "Last X Days" - 45
    Also - Where did "Clear Local Cache" go? - (to get the default filter back I have to clear the browser history)
    Last edited by khopper; 03-26-2019, 01:11 PM.

    Leave a comment:


  • yuri
    replied
    custom/Espo/Custom/Resources/metadata/clientDefs/YourEntityType.json


    Primary filter. 'active' is the name of primary filter (dropdown on the left).

    Code:
    {
        "defaultFilterData": {
               "primary": "active"
         }
    }
    Field filter.
    Code:
    {
        "defaultFilterData": {
               "advanced": {
                    "orderDate": {
                            "type": "lastSevenDays"
                     }
                }
         }
    }
    Last edited by yuri; 03-23-2019, 06:12 AM.

    Leave a comment:


  • khopper
    replied
    I see the exact same thing that rodrigocoelho is seeing in this directory.
    yurikuzn - Perhaps we are not on the same page of understanding.

    Default Filters for the list view of an entity upon logging in, unless cleared or changed.

    See Screen shot - I would like this displayed every time I log in by default. (The filter)

    Leave a comment:


  • rodrigocoelho
    replied
    Originally posted by yurikuzn
    This logic can be defined in SelectManager class.
    I see it only for some entities.

    Click image for larger version

Name:	Capturar.JPG
Views:	1763
Size:	65.5 KB
ID:	47070

    Leave a comment:


  • yuri
    replied
    This logic can be defined in SelectManager class.

    Leave a comment:


  • rodrigocoelho
    replied
    Originally posted by rodrigocoelho

    We are talking about DEFAULT filters. Like ALWAYS filtering Archived ones......
    Any clue of what we should change to achieve this? Any Nameselector?

    Thanks

    Leave a comment:


  • rodrigocoelho
    replied
    Originally posted by yurikuzn
    Reports has an ability to be used as a filter https://github.com/espocrm/documenta...sed-on-reports
    We are talking about DEFAULT filters. Like ALWAYS filtering Archived ones......

    Leave a comment:


  • yuri
    replied
    Reports has an ability to be used as a filter https://github.com/espocrm/documenta...sed-on-reports

    Leave a comment:


  • rodrigocoelho
    replied
    Originally posted by khopper
    It would be great if this could be done via the GUI.
    https://forum.espocrm.com/forum/feat...der-any-entity
    I asked for the same thing in other post. My problem is not related to speed, but for helping to choose the correct linked object when typing (autocomplete), it is showing ALL thousands of options, and I would like to have only the "not archived" ones as options.

    Let's hope yuri can think on a solution for the next versions. I trust him!

    Leave a comment:


  • khopper
    replied
    It would be great if this could be done via the GUI.
    Ability to add and customize default filters for all users via GUI. As the DB grows it takes longer and longer to load a page/entity such as accounts and or

    Leave a comment:

Working...