''Between'' only as default filter condition in Lead List

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brijeshcp@gmail.com
    Member
    • Apr 2018
    • 41

    ''Between'' only as default filter condition in Lead List

    Hi,
    In lead List view, how to give date selection field, ''Between'' only as default filter condition. ?
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Do you need it for all users or for own usage?
    If for own only, you can use saved search.
    If for all - it's possible with developing only.

    Comment

    • brijeshcp@gmail.com
      Member
      • Apr 2018
      • 41

      #3
      Hi,
      I need it for all users.Also Lead default list view to be from month beginning till present date.please give me the steps to do it.
      Last edited by brijeshcp@gmail.com; 06-19-2018, 10:40 AM.

      Comment

      • brijeshcp@gmail.com
        Member
        • Apr 2018
        • 41

        #4
        Hi,
        Please help me to fix the above.
        Last edited by brijeshcp@gmail.com; 06-27-2018, 07:21 AM.

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          override field view and set the method



          setupSearch: function () {
          Dep.prototype.setupSearch.call(this);
          this.searchTypeList = ['between'];
          },

          EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.

          Comment

          • brijeshcp@gmail.com
            Member
            • Apr 2018
            • 41

            #6
            Hi,
            please tell me,which pages should be override?is date.js only?

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              for which one field you need this modification? for all date / datetime fields or just for some fields in Lead entity?

              Comment

              • brijeshcp@gmail.com
                Member
                • Apr 2018
                • 41

                #8
                Hi,
                Need modification for 'created At' field.

                Comment

                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #9
                  so,you need to override the view for this field.
                  I sent a link on documentation. Create the view in client/custom/src/views/lead/fields/created-at.js, set the view in custom Lead entityDefs.
                  the are a lot of examples on the forum, how to override the view of the field

                  Comment

                  • brijeshcp@gmail.com
                    Member
                    • Apr 2018
                    • 41

                    #10
                    Hi,
                    Please tell me how to set this for all date/datetime.js fields? Also default list view to be from month beginning till present date.

                    Comment

                    • tanya
                      Senior Member
                      • Jun 2014
                      • 4308

                      #11
                      ]https://forum.espocrm.com/forum/developer-help/24170-filter-link-field-values-by-other-entity-link-field

                      client/custom/src/views/lead/fields/created-at.js

                      [CODE]
                      Espo.define('custom:views/lead/fields/created-at', 'views/fields/datetime', function (Dep) { ... [/CODE



                      Comment

                      • brijeshcp@gmail.com
                        Member
                        • Apr 2018
                        • 41

                        #12
                        Thanks for your reply.
                        please give me the code for making default lead list view to be from month beginning till present date.

                        Comment

                        Working...