Hi,
I have this code working, to filter a database and then only show on a list the filtered items.
Can someone help me adding code that will also count the number of filtered items and display the count into an input box.
I already do this to count the total number of items into my database and post it in an input box
Thank you any help will be very much appreciated
Pierre
ibmretraitesqc
Here is my code for that filter option:
export function input3_keyPress(event, $w) {
if (debounceTimer) {1// clearTimeout(debounceTimer);
Hi, did apply your suggestion and it partially works. I get my filter input from an input box. If I type too fast, randomly I get 0 as a count. Is there a way to fix this?
Works 9 times out of 10.
Thank you for your help
Here is my code:
export function input2_keyPress(event, $w) { if (debounceTimer) {1//clearTimeout(debounceTimer);
@ibmretraitesqc I don’t know, but I also don’t understand the beginning of your code:
if (debounceTimer) {1//clearTimeout(debounceTimer);
I highlighted in red the part I just don’t understand. Why do you have there number 1? Why did you change the clearTimout to an un-functioning notation?
@jonatandor35 Hi, I am sorry. This was a mistake (typo) on my part. I have removed this and increased the timeout value to 800 and it seems to work fine now.