requestFocus() in web client?

Servoy version 3.1.6-build 410, repository version 29

I am having trouble getting the requestFocus() function to work on web client. I have a form method that is called onShow that uses requestFocus() but it never seems to do it, neither does it work if I call the mentioned form method just on a simple onAction with a button. Is there an issue with it?

Here is the mentioned form method, very simple…

globals.g_stock_location_location = null;
globals.g_stock_location_skid = null;

elements.g_stock_location_skid.requestFocus();

the first two clearing of the var’s works fine in the web client, just the requestFocus() has a problem. BTW, it works fine in smart client.

I’m pretty sure that elements.requestFocus() is not available in WebClient.

In Developer select View - Web Filter and you’ll find that commands/options etc that do not work in WebClient are not available in the menus/trees.

HTH

Graham Greensall
Worxinfo Ltd

It’s implemented in Servoy 3.5

Paul

I had to double check to make sure I wasn’t crazy, but yes I do have the web filter turned on and requestFocus() is one of the available functions. So is it a bug that is shows up in 3.1 even though it doesn’t work (as stated it is available in 3.5 i guess)?

Are there any other functions that don’t work in 3.1 with the web client that are listed even with the filter turned on?