Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I pass a value (for example, a number) to a variable through the URL to display a query page in an ADF application?

Mohammed HashimDec 26 2024

Hello everyone!

I need to know the proper way to pass a value (such as an ID or number) in the URL to a specific page in my ADF 12cThis value should be captured by the page or task flow and used for querying data or performing actions based on the passed value.

- What is the method to capture the passed value in the page or managed bean?
- How can I retrieve the value from the URL within a managed bean or ADF page?
- Is there a specific syntax or approach for including this value in the URL (e.g., as a query parameter)?
- Once the value is passed, how can I use it to execute a query on the page (e.g., show records based on the passed ID or number)?

For example, the URL might look like:

http://myapp.com/queryPage.jspx?itemId=123

Where `itemId` is the parameter being passed, and `123` is the value that should be used on the page for querying data.

Comments
Post Details
Added on Dec 26 2024
1 comment
277 views