Hello,
How do save an entity to remain on the same screen in edit mode?
because I need to save and get the Id of what was saved.
Best Regards,
Jessica Marques.
Hi Jessica,
After createOrUpdate, you can get the out Id, example:
And to remain in the same screen, example:
Regards.
Agno Silveira wrote:
Hi Agno Silveira,
Thanks for the help, it works, but I have some more questions:
1. After it was saved and I got the id, how do I call preparation again with this new Id?
2. As I use the Current Screen the form goes back to its default value, how do I get it to ID, be editable (As you have already explained above) and still keep the data on the form?
Regards,
Jessica.
Jessica Marques wrote:
1 - Pass the Id as an input parameter to the current screen.
2 - You can create 2 buttons with the same target action (with an input variable),
[save and goback to list] ou [save], this second [save] keeps on the same screen.