Announcement

Collapse
No announcement yet.

Custom Primary Filters (Result in losing existing filters by default)

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

  • Custom Primary Filters (Result in losing existing filters by default)

    Hi Guys,

    I have some new custom filters on the account entity and they work fine, but i have noticed that the default primary filters like (recently created) has disappeared. how can i merge all the filters so i could have my own custom filters plus the ones built in by default, how can i append the selectDefs/account.json to have all custom and existing filters, below my selectDefs for account.json

    Code:
    {
    
    "primaryFilterClassNameMap": {
    "activeClients": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\ActiveClients",
    "partnerAccountants": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\PartnerAccountants",
    "introducers": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\Introducers",
    "accountants": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\Accountants",
    "inactiveClients": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\InactiveClients",
    "recentlyCreated": "Espo\\Custom\\Classes\\Select\\Account\\PrimaryFi lters\\RecentlyCreated"
    }
    
    }
    please help. yuri can you please advise how can i achieve this.

    Thanks
    Rabii
    Web Dev

  • #2
    No worries, just figure it out. Needed to append the filter in the clientDefs. It is working now, however is there any option where we can order those filters ?
    Rabii
    Web Dev

    Comment

    Working...
    X