Skip to Main Content

APEX

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Want to have the page reload/refresh in the same position after SUBMIT

660090Sep 16 2008 — edited Sep 23 2008
I have a submit button in the middle of a page and would like to see if I can have the page reload/refresh in the middle of the page after the submit button is pressed.

The reason for this is that my page has 3 regions, the top two are summary reports for my end users and the bottom region/report is where the end users update thier data and after they hit the submit button the page reloads to top and they would like it if the page would reload back to the middle of the page - less scrolling for the end user.

Any assistance is greatly appreciated.

Edited by: user10269282 on Sep 16, 2008 9:48 AM

Comments

514908
Hi,

Its easy!

1-Put an anchor on every report header (or where you want the page to position itself).
ex.: This is a report title :
<a name="dept_emp">Department Employees</a>

2-Create a branch (to URL) that goes back to your page after the processing.
ex.: url = f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.::&DEBUG.#dept_emp


Hope this helps

Louis-Guillaume
660090
That worked!!! Thanks a bunch!
514908
No problem! :)
fac586
lgcarrier wrote:Hi,

Its easy!

1-Put an anchor on every report header (or where you want the page to position itself).
ex.: This is a report title :
2-Create a branch (to URL) that goes back to your page after the processing.
ex.: url = f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.::&DEBUG.#dept_emp
If you already have known HTML ID attributes in the page, e.g. by specifying #STATIC_REGION_ID#, you can save a bit of work, miss out step 1, and use the existing ID as the fragment identifier after the # in step 2.
jfosteroracle
Is there a way to do this without a submit button? I have a select list halfway down a page, that filters a report. When they make a selection from the select list (select with submit), i'd like the page to return to the location of the select list and report (halfway down the page). I have an anchor set up at the select list.

Thanks,
John
garywicke
Where in the documentation does it describe the 'anchor' functionality? I can't seem to find it.

Thanks!

-gary
jfosteroracle
The anchor is an HTML code. It is for setting a position that can be referenced for a link. The code is:

<a name="anchor_name" id="anchor_name> </a> So you can put this in your page anywhere you want to navigate to. I put it in the label of my select list.

My problem is i want to go to that spot after making a selection from the select list (with submit). I think i can do what i want with a corresponding submit button, then a branch tied to the submit button. I was hoping to avoid using the submit button though.
1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 21 2008
Added on Sep 16 2008
7 comments
1,371 views