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



  1. Damir Vadas on September 6, 2012

    Hi!

    Nice hint … very usefull.
    Rg,
    Damir Vadas

  2. Candice Liu on September 6, 2012

    Great!! Thank you.

  3. Peter on September 14, 2012

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