today:
119
yesterday:
242
Total:
1,004,277

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
No. Subject Author Date Views
86 eeeeee admin 2018.06.21 224
85 If you want to use EXISTS in a PL/SQL function returning BOOLEAN admin 2018.05.19 223
84 3D Pie Chart admin 2016.05.17 222
83 Report by Order / Product / Order and Product / By Order & Non Order admin 2016.04.29 220
82 Process admin 2018.05.05 218
81 CREATE VIEW admin 2016.05.13 218
80 All Data DELETE from Table admin 2018.05.10 211
79 IF/ELSE ... CASE WHEN admin 2018.06.25 209
78 use a validation function for an element in apex 5.0 admin 2018.05.19 209
77 Name Show admin 2016.04.28 203
76 MISSIONARY_SUB admin 2018.06.25 199
75 How to convert DATE to NUMBER admin 2018.05.27 198
74 TABLE PRINT admin 2018.06.18 186
73 Apex setup procedure admin 2016.04.28 182
72 Captcha Test file admin 2016.04.18 178
71 CREATE TABLESPACE admin 2016.04.28 177
70 EXPORT & IMPORT admin 2016.05.01 175
69 CREATING A TABLE / SEQUENCE / TRIGGER admin 2016.04.28 172
68 UPDATE PROCESS admin 2016.04.28 167
67 TAP ( Main & Sub ) / Button 의 Switch admin 2016.04.28 166