Page 1 of 1

walking filter

PostPosted: Wed Jul 14, 2010 12:05 pm
by lesouef
I'd like to make a walking filter like what I can do in JS in a web page using the onkeyup command to trigger an action on every character which is typed in a field. on small amount of records, it is very handy to filter records (in a web page, you can even not re-issue the records but simply hide the unnecessary rows using their <tr> object)
so, has anyone found a trick to avoid to type enter in a field to detect data change?

Re: walking filter

PostPosted: Wed Jul 14, 2010 12:11 pm
by ROCLASI
Hi Lesouef,

If you need this in Smart-client then you can use the Keylisteners plugin from Patrick Talbot.
http://www.servoyforge.net/projects/keylisteners

Re: walking filter

PostPosted: Wed Jul 14, 2010 4:07 pm
by lesouef
though I know Patrick'site, never noticed this plugin. and it does work.
he just forgot to mention the possible key states, but I guessed the one I needed: keyPressed and keyReleased (probably std in java, but as I only know JS...)
there is also a small weird thing i'll report to him, only the 1st action is done, so if you want to focus back to where you were, you need to put it in the triggered method, not in keyListener method.
thanks.

Re: walking filter

PostPosted: Wed Jul 14, 2010 4:24 pm
by ROCLASI
Just add any issues/feature requests in the issue tracker of this project:
http://www.servoyforge.net/projects/keylisteners/issues