Announcement

Collapse
No announcement yet.

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

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

  • ''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. ?

  • #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


    • #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


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

        Comment


        • #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


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

            Comment


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

              Comment


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

                Comment


                • #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


                  • #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


                    • #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


                      • #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...
                        X