Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:50:25+00:00 2026-06-15T02:50:25+00:00

I have a number of different Interactive Reports within my application (using Oracle ApEx

  • 0

I have a number of different Interactive Reports within my application (using Oracle ApEx 4.1), on different pages.

On each of these reports, I have pagination but I have been asked to also provide on each of the reports, the overall total number of records, displayed somewhere on the page per report.

Is there a means of doing this functionality on Page 0 or do I need to calculate total records for each report separately?

Update for commenter

As mentioned in my previous comment, I added the new "p_use_filter" boolean parameter and set this to FALSE and all works fine.

I have another query. On one of the IR reports, within my where condition, I am using a bind variable but when I drill down on a report field that passes to the other report with the bind variable a STRING and then look at the backend SQL statement, I am getting an INVALID RELATIONAL OPERATOR error because the SQL has a WHERE condition like:

WHERE (CUSTOMER_NAME = ABC AIRLINES LTD )

i.e. it is trying to parse the SQL without single quotes around ABC AIRLINES LTD ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:50:26+00:00Added an answer on June 15, 2026 at 2:50 am

    I’d propose to retrieve the IR SQL and then execute that SQL wrapped in a SELECT COUNT(*) from (...).

    Now, with Apex 4.2 you get the apex_ir package which can get the report SQL, but in pre 4.2 you do not have such a package. I have made one for myself, and I’ve used it for several things (I’ve blogged a bit about these for example).

    The code needs some cleaning, but it is functional and has plenty of commentary in it. It’ll parse all the filters and transform them into SQL again. It does not handle computations or GROUP BYs. It’ll maybe have some kinks left in the cable somewhere, but it may depend on what you want to do with it. In this case it shouldn’t be a problem.

    Git link

    Basically, install the package in your schema, and then use code like this to run it:

    DECLARE
       lNullTable  DBMS_SQL.VARCHAR2_TABLE;
       lDebug      VARCHAR2(4000);
       lSql        VARCHAR2(4000);
       lCount      NUMBER;
    BEGIN
       lSql := apex_ir_pkg.get_ir_sql
          (
             p_app_id             => :APP_ID,
             p_session_id         => :APP_SESSION,
             p_page_id            => :APP_PAGE_ID,
             p_report_id          => NULL,
             p_app_user           => :APP_USER,
             p_use_session_state  => TRUE,
             p_binds              => lNullTable,
             p_binds_val          => lNullTable,
             p_incl_order_by      => FALSE,
             p_debug              => lDebug,
          );
       
       lSql := 'SELECT count(*) FROM ('||lSql||')';
       
       EXECUTE IMMEDIATE lSql INTO lCount;
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ten buttons that each correspond to a different number. I'm looking to
I have a product catalog. Each category consists of different number (in deep) of
We have a large number of programmers on different platforms all using CVS. We
In our company, we have a number different modules constructed as separate wars. Each
I have two tables (Table A and Table B). These have different number of
Let me know if you want more details but: I have an different number
I have a plist dictionary with several arrays where each have different number of
We have a number of different old school client-server C# WinForm client-side apps that
I have now written a number of different functions in Google Apps Script that
We have a number of servers running various different LAMP setups. One thing that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.