(function () {
'use strict';
// Replace with your Custom View's view ID
var customViewID = 6387076;
var vm = new Vue({
data: {
searchText: '', // Add a section for search text to the data object
records: [],
},
computed: {
// Create a function to filter
filteredRecords: function () {
var self = this;
return self.records.filter(function (record) {
return record.employeename.value.indexOf(self.searchText) !== -1;
});
}
},
});
kintone.events.on('app.record.index.show', function (event) {
if (event.viewId !== customViewID) return event;
var records = event.records;
// Mount the Vue instance on the HTML element with ID #app in the custom view
vm.$mount('#app');
// Set the data
Vue.set(vm, 'records', records);
return event;
});
})();
I find this search form in a custom view with vue.js but the problem is it only search all the data within the pagination it won’t search all the data on the kintone database
Also, how can I add the date range in the search here?