Set Cursor to Interactive Report Search Field

A Question I get over and over again is: how can I position the Cursor in the Interactive Report Search Field when the Page Loads?

Well, the Answer is simple, but not obvious.

At first you have to change the Page Setting Cursor Focus to Do not focus cursor, because the Setting First Item on Page doesn’t count the IR-Search Field as Item.

Then add this line to the Page Setting “Execute when Page Loads”:

jQuery("#apexir_SEARCH").focus();

That’s all, have fun :-)

Works for Oracle APEX 4.0, 4.1 and 4.2

3 thoughts on “Set Cursor to Interactive Report Search Field

  1. Saw the post, had a use-case
    =>great. thanks to our neighbour

Leave a Reply

Your email address will not be published. Required fields are marked *