How to allow backward navigation to reload the saved data?

Steps to reproduce:

  1. Navigate to Screen1 (Detail View) to create new entity
  2. Fill the form, save the new entity, save the dataContext
  3. From Screen1, click a button that will navigate to Screen2 (Another Detail View) to create another entity related to the current one.
  4. Finish the form, save, Screen2 gets closed and gets back to Screen1.

Expected:

  • The form should be filled according to the entity edited previously.

Actual:

  • The form is gone, we’re in the new screen again, like when we’re creating new entity.

Note:
When I go to Screen1 with existing entity, and and navigate to Screen2 and create a new entity, saving/closing the Screen2 will return me to the Screen1 with the existing entity.

Navigation (back or forward) means that the view is (re)opened using the information in the URL. If the Screen1 is opened for a new entity, its URL ends with /new. Perhaps you need to modify the Screen1 URL after the entity is saved (try this approach) or just use the dialog mode for Screen2.

1 Like