Idea Summary
Currently, when creating a subscription for an Interactive Report in Oracle APEX, the filter values (e.g., date ranges) are stored as fixed values based on the session at the time of subscription creation. This means that even if the page items use dynamic default values (e.g., TRUNC(SYSDATE) - 7
), the subscription will always use the static values captured during creation.
This behavior limits the flexibility of subscriptions, especially for reports that are meant to reflect dynamic time periods like "last 7 days" or "current month".
Proposed Enhancement
Introduce a subscription option that allows developers or users to choose whether:
- Filter values should be stored statically (current behavior),
or
- Filter values should be dynamically evaluated at runtime, using the default logic defined in the page or SQL query.
Example Use Case
An Interactive Report has two date picker items:
P1_DATE_FROM
with default TRUNC(SYSDATE) - 7
P1_DATE_TO
with default TRUNC(SYSDATE)
When a user creates a subscription, they should be able to choose:
- Static mode: Save the current values (e.g.,
11-AUG-2025 to 18-AUG-2025
)
- Dynamic mode: Use the default logic at runtime (e.g., always "last 7 days")
This would allow subscriptions to remain relevant and accurate over time without manual updates.
Benefits
- More flexible and powerful reporting
- Better support for time-based automation
- Improved user experience and reduced maintenance