The following was developed using Apex 4.1, but apart from some cosmetic changes, the principles should be the same.
The data is taken from the standard scott.emp schema.
Overview
This is page 1, the user can enter empno and / or hire.
When you click the submit button, the following report is displayed on another page:
How it works
On page 1, I created the three items shown. Text elements are called P1_EMPNO and P1_HIREDATE. Button action: "Send page"
On page 1, create a branch with the following values:
This branch moves to page 2 (which has not yet been developed) and sets the values ββof the elements on page 2 with the values ββfrom page 1.
Create a new page, in this example it will be indicated on page 2.
On page 2, create a new interactive report using the following query:
select e.* from emp e
Then create two text elements in the same region as the report and call them: P2_EMPNO and: P2_HIREDATE. I found it useful to show these elements at design time so that you can see that the correct values ββare being passed to the page. You can always set them as hidden as soon as you are happy with the report.
Finally, modify the query used by the interactive report to use the values ββshown on page 1
Launch the app.
source share