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!

Restore Apex page items value after submitting page if you choose to navigate back

Vikram ShelkeMar 6 2023 — edited Mar 6 2023

Hi,

Apex version - 22.1 and Oracle database is at 19C.

Requirement - We have implementing Summary list design - https://design-system.service.gov.uk/components/summary-list/

Flow causing problem -

When you click on Change link of any field, you will be navigated to a page of that field to edit the item value, this page has Back link and Continue button.

  1. If you edit the value and you hit the Continue button and if it's a valid value then you will be brought back to Summary list page and filed will start to show edited value.
  2. If you edit the field and hit Continue button and the value is invalid then the validation error message will be shown and then you choose to go back to summary list without editing the field and you use Back link for that.

Continue button is Submit button and Back link just navigate you back to summary list.

Actual Problem -

When we hit the Continue button and validation error is thrown because of invalid value we loose the Original value.(Because On submit Apex stores edited value in session state that is invalid value.) And when user click Back link at this stage summary page starts to show edited invalid value which was stored in session.

Expected behaviour - We want to restore the original value on click of Back link to display it on Summary list page.

I appreciate your time you read till this and will need your help to resolve this.

Thanks in advance!!!

This post has been answered by Vikram Shelke on Mar 13 2023
Jump to Answer
Comments
Post Details
Added on Mar 6 2023
8 comments
383 views