How can we achive, after pressing a button, that the page will be submited and that the user is transfered to the page he comes from.
I tried a lot of things. nothing worked.
It is easy to add an dynamic action with history.back() but then the form will not be submited (and the session vars are null...).
Thanks for help,
This blog post might help
One way might be branch back to current page and set request e.g. BACK.
Thanks for the answers!
sounds pretty efficient. But how could we get the page number from the last page?
&APP_PAGE_ID.; just gives us the actual page number.
I only can think of setting a hidden item (P0_PreviousPage) on the global page and always set this to &APP_PAGE_ID. Of course not at the page I would like to go the history back.
But I can feel, this solution is not the best....
This does not work.
I get a browser error from firefox...
What i have rigth now:
1: From on a Table
3: Create button with Action: Submit
Branch: after submit and after everything, no conditions, nothing else
5: there are the "reset page", "fetch row" and "Process Row" processes from the From on the Table
The Cancel button works fine.
But the Create button don't.
Does nobody have any suggestion?
I always stuck on this url: "......pls/apex/wwv_flow.accept"
As previously suggested, create an application item to store the number of the last page, maintain this using an application process, and use a branch of type Branch to Page Identified by Item (Use Item Name) with the item storing the last page ID as the branch action.
Yes. I also thougth about the suggested solution with the item which contains the last page ID.
BUT: I simply do not know how to get the last page ID. With ":APP_PAGE_ID" I just get the actual page ID!
I need a way to get the previous page ID.
I also tried this post:
but I always just can get the actual page ID.
thanks for help
Do get the previous page number,
Create two application items F_PREV_PAGE_ID, F_CURRENT_PAGE_ID
Create one application process before header (process point)
IF :F_PREV_PAGE_ID IS NULL THEN
:F_PREV_PAGE_ID := :APP_PAGE_ID;
:F_PREV_PAGE_ID := :F_CURRENT_PAGE_ID;
:F_CURRENT_PAGE_ID := :APP_PAGE_ID;
When the user logs very first time, both the application items will be null and both items will bold same value
Lets say user clicked a button and was redirected to page 2 from 1
Now F_PREV_PAGE_ID = 1 and F_CURRENT_PAGE_ID = 2
Lets say user clicked a button and was redirected to page 4 from 2
Now F_PREV_PAGE_ID = 2 and F_CURRENT_PAGE_ID = 4 and so on