Need to filter My Calls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dugjohnson
    Member
    • Jan 2015
    • 38

    Need to filter My Calls

    I want to filter the calls in My Calls to be only now and into the future.
    I still want the full Calls listing to show everything
    Can I accomplish this?
  • yuri
    Member
    • Mar 2014
    • 8477

    #2
    /client/modules/crm/src/views/dashlets/calls.js

    Define dateStart filter:

    PHP Code:
                searchData: {
                    bool: {
                        onlyMy: true,
                    },
                    advanced: {
                        status: {
                            type: 'notIn',
                            value: ['Held', 'Not Held']
                        },
                        dateStart: {
                            type: 'future',
                            dateTime: true
                        }
                    }
                }, 
    
    Clear cache
    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

    • yuri
      Member
      • Mar 2014
      • 8477

      #3
      It's also to define custom view for dashlet

      1. Create custom/Espo/Custom/Resources/metadata/dashlets/Calls.js
      {"view":"Customashlets.Calls"}

      2. Create client/custom/src/views/dashlets/calls.js

      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

      • yuri
        Member
        • Mar 2014
        • 8477

        #4
        I think i will add this filter as an option for the next version.
        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

        Working...