Rick Goodrow
08/31/2021, 7:26 PMlet filterDateStart = Nsearch.createFilter({
name: 'trandate',
operator: Nsearch.Operator.ONORAFTER,
// values: runDates.startDate,
values: '07-01-2021',
});
This code, whether with values as a date string like shown, or as a Date object (the commented value), doesn't return an error, but when I try to run the search with this filter pushed, then it errors. Anyone see any issues with creating the filter like this?battk
08/31/2021, 7:33 PMbattk
08/31/2021, 7:33 PMSandii
08/31/2021, 7:50 PMRick Goodrow
08/31/2021, 9:05 PMlet filterDateStart = Nsearch.createFilter({
name: 'trandate',
operator: Nsearch.Operator.ONORAFTER,
// values: runDates.startDate,
values: '07-01-2021',
});
let filterDateEnd = Nsearch.createFilter({
name: 'trandate',
operator: Nsearch.Operator.ONORBEFORE,
// values: runDates.endDate,
values: '07-31-2021',
});
searchUnbilled.filters.push(filterDateStart);
searchUnbilled.filters.push(filterDateEnd);
Rick Goodrow
08/31/2021, 9:05 PMRick Goodrow
08/31/2021, 9:06 PMjen
08/31/2021, 9:33 PMjen
08/31/2021, 9:33 PMmysearch.filters.push(search.createFilter({name: 'trandate', operator: search.Operator.ONORAFTER, values: format.format({value: my_date, type: format.Type.DATE})});
jen
08/31/2021, 9:33 PMnathanw
08/31/2021, 10:07 PMRick Goodrow
08/31/2021, 11:16 PMRick Goodrow
09/06/2021, 9:08 PM