Warm tip: This article is reproduced from serverfault.com, please click

Pass an URL parameter to public page and query by it (Oracle Apex)

发布于 2020-12-01 07:14:38

I need to call public apex page (without authentication) and pass parameter to it through the URL and make the page to query a table with that parameter when page load

for example pass employee id through URL and the page display the employee data

if you have an example of dummy page it will be great

I am using Oracle Application Express 20.1.0.00.13

Questioner
Mohamed Taher
Viewed
0
Koen Lostrie 2020-12-01 23:45:01

Example for the emp table of one way to do this. I'm doing it with a report but you should be able to figure out based on this how do do it with a form too.

  1. Create a page of type "Report > Interactive Report". Select table "EMP" and create the page.
  2. Edit the page in page builder. In my case this the page nr is 15.
  3. Create page item P15_ENAME of type "Hidden"
  4. Modify the report region: set WHERE clause to ENAME = :P15_ENAME
  5. Modify the page properties: set authentication to "Page is public". Save.
  6. Run the page with the url like this <hostname_and_path>/f?p=<your_app_id>:15:::::P15_ENAME:KING (replace the values between <> with your own).