Tuesday, April 28, 2009

APEX Interactive Reports - Customize Wait Display Part 2

APEX Interactive Reports - Custom Wait Display Part 2

Note: If you're using APEX 4.0 please see this post: http://www.talkapex.com/2010/08/apex-40-interactive-reports-customize.html

A few weeks ago I wrote about customizing the default APEX IR wait logo: http://apex-smb.blogspot.com/2009/04/apex-interactive-reports-customize-wait.html. Here is the second part of that article which focuses on overwriting APEX's dispIRBusyGraphics function.

Overriding the default "Busy Graphic" function can be used to customize messages/images as well as preventing users from resubmitting IR request which may take a long time.

An example of this can be found here

- 1: Create IR Report


-- Trying to make this a slow query to demonstrate the IR loader
SELECT e.*, sum(e.sal) over() test
FROM emp e
CONNECT BY LEVEL <= 5


- 2: Download jQuery and Simple Modal and upload the JavaScript files in the Application's Static Files:

jQuery: http://jquery.com/
Simple Modal: http://www.ericmmartin.com/projects/simplemodal/

- 3: Create an HTML region and add the following:






3 comments:

  1. Martin
    This is not working in Apex 4.. Any idea why?

    Thanks
    Prabahar

    ReplyDelete
  2. Hi Prabahar,

    I just wrote a post on how to do this with APEX 4.0: http://www.talkapex.com/2010/08/apex-40-interactive-reports-customize.html

    Martin

    ReplyDelete