Example of edit screen with navigation

Hi everyone,

We’ve added an example of how to implement the edit screen capable of moving through the list of entities and creating new entities without closing the screen:

screencast 2023-01-18 18-27-33

Check it out at https://demo.jmix.io/sampler/#main/sample?id=navigating-editor

Also, take a look at other examples in the Cookbook section!

7 Likes

Hi @krivopustov,

great job, please teach us with more of your nice examples!

Just one thing - when you select an entity in the list and open the navigating editor,
modify the entity and press ‘Next’ you get an save/discard dialog - select discard (no save of the modified entity, the edit dialog switch to the next, what is fine)
But when you then press ‘Close’ without any changes, you get an additional save/discard dialog.
At this point no entity is currently modified - so I don’t expect this dialog.

Not sure why this is happen, just in case you want to fix it.

BR
Stefan

1 Like

Hi Stefan,

Thank you for the bug report!
Fixed.

Do you plan to include it in the templates in the future?

1 Like

Not any time soon.
It’s mostly a demonstration of what can be done with UI on the project level when needed. We wouldn’t like to promote such a use case as a standard.

Hi Konstantin
This example demonstrating an interesting approach, especially when there are a lot of data entries required at item level. Thank you.

Will this work in FlowUI project, e.g. support of screen fragments?

We’ll certainly make a similar example for Flow UI.

1 Like