Announcement

Collapse
No announcement yet.

getSelectFilters date

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

  • 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',
       
    valueyesterday,
          
    data: {
              
    type'after',
              
    nameValueyesterday
           
    }

    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.

  • #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',
                     
    valueyesterday,
                     
    dateValueyesterday

              
    },

              
    //some filter

         
    };

    Last edited by Kirill; 06-25-2019, 12:14 PM.

    Comment

    Working...
    X