today:
88
yesterday:
177
Total:
1,001,005

General Interactive Report

admin 2016.05.07 06:10 Views : 116

Apex Interactive Report: The difference between CIR and RIR

You’ve probably already used the reset functionality in an Interactive Report, but do you know the exact the difference between CIR (Clear Interactive Report) and RIR (Reset Interactive Report)?

RIR or CIR, what is it?

First, let’s explain what CIR and RIR is and how you can use it.

With CIR and RIR you can clear or reset your Interactive Report after using filters. This can be handy if you’ve applied a filter on a page, but also want to (re)use the full report.

If you want to apply a filter on an interactive report when linking from another page you can use the following operators.

FunctionMeaning
IREQ_<COLUMN_NAME>Equals
IR_<COLUMN_NAME >Same as IREQ
LT_<COLUMN_NAME > Less than
IRLTE_<COLUMN_NAME >Less than or equal to
IRGT_<COLUMN_NAME > Greater then
IRGTE_<COLUMN_NAME > Greater then or equal to
IRLIKE_<COLUMN_NAME > Like operator
IRN_<COLUMN_NAME > Is Null
IRNN_<COLUMN_NAME > Is not Null
IRC_<COLUMN_NAME > Contains
IRNC_<COLUMN_NAME > Not Contains

You can also use above functions in a saved report, then you have to use IR_REPORT_<ALIAS>.

Sometimes the page with the interactive report can be accessed by multiple pages and you would like to reset the filters already applied to the interactive report.

i.e. You have a page with Countries and you want to filter your existing Customer Report to all customers in selected state. But, when you click on Customers on another page you want to see all customers, not only the ones you just filtered. In this case you can use CIR or RIR.

You can simply enter these options in the URL or the Clear Cache option in your button / branch.

APEX_CIR_RIR

But what is exactly the difference between using the CIR and the RIR?

As the name suggests, CIR Clears and RIR Resets.. But isn’t that the same?

Almost. The main difference is that CIR Clears the report, clearing all breakpoints, filters and other defined actions on your report, ignoring the settings of the primary report. RIR Resets the interactive report to the primary report.

In the following table you can see which user defined modifications to an Interactive Report will be lost or kept when using the CIR/RIR clear cache option.

 CIRRIR
Main FunctionClears Interactive ReportResets Interactive Report
Maintains:
–  Column visibilityYES*NO
–  Primary ReportNOYES
–  Filters NONO
–  BreakpointsNONO
–  PaginationNONO
–  SortYESNO
–  HighlightNONO
–  ComputationNONO
–  AggregateNONO
–  ChartNONO
–  Group byNONO

* Please note that when a CIR has been given, the columns displayed are still the columns of the primary report, but ‘stripped’. But if you alter the shown columns as a user it will display these columns.

For a demonstration click HERE.

Conclusion

In conclusion, use CIR to clear all filters and other settings set by the user or in the primary report. Use RIR if you want to reset to the primary report keeping all filters and columns of the primary report.

No. Subject Author Date Views
46 Oracle APEX 5.1.4 Installation admin 2018.04.17 132
45 HEAD TITLE (제목)을 조건에 따라 바꾸기 admin 2016.05.03 132
44 Column Data 일괄 추가 admin 2023.11.24 127
43 Global & Custom Serach file admin 2016.04.28 127
42 LIST OF VALUE (DYNAMIC) admin 2016.04.28 126
41 What Is ERP? admin 2018.02.14 121
40 test admin 2016.05.11 121
39 Oracle SQL Developer: Online Migration 3.1 admin 2018.04.25 120
38 How to Install Oracle 11g on Windows 10 - 64 bit | Download / Install Oracle 11g Database file admin 2022.03.17 120
» Interactive Report admin 2016.05.07 116
36 Display Value, Return Value admin 2016.05.10 115
35 LAST DAY SQL admin 2024.01.19 111
34 QR-CODE admin 2017.11.30 111
33 Null Display Value admin 2024.01.10 109
32 APEX ADMIN PASSWORD 바꾸기 admin 2016.05.02 108
31 SQL DEVELOPER file admin 2022.03.17 106
30 TEST admin 2023.03.27 97
29 SQL Basics - Lesson 1 - Introduction admin 2017.06.17 97
28 image (products) admin 2017.11.24 92
27 Material requirements planning (MRP) admin 2018.02.14 88