getSelectFilters date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kirill
    Junior Member
    • Oct 2018
    • 20

    getSelectFilters date

    I need to set the filter by date using function getSelectFilters. End date after yesterday. My code:
    PHP Code:
    'endDate': {
       attribute: 'endDate',
       type: 'after',
       value: yesterday,
          data: {
              type: 'after',
              nameValue: yesterday
           }
    } 
    
    It works, but in CRM field is empty. I assume this is due to incorrect filling "date". Examples of filling the array with data type date is not found, tried the method of random selection - no results. yesterday - it's the date in format 2019-06-14. How to set a filter correctly?
    Last edited by Kirill; 06-13-2019, 06:13 AM.
  • Kirill
    Junior Member
    • Oct 2018
    • 20

    #2
    20 days have passed, no reaction to my post. The value was matched.
    PHP Code:
    getSelectFilters: function () {
    
    //some code
    
         return {
    
              //some filter
    
              // фильтр "Дата окончания"
              'endDate': {
                     type: 'after',
                     value: yesterday,
                     dateValue: yesterday
    
              },
    
              //some filter
    
         };
    } 
    
    Last edited by Kirill; 06-25-2019, 12:14 PM.

    Comment

    Working...