30
Views
3
Comments
Solved
How stay at Same Screen in edit mode?
Question

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. 

2021-06-09 13-39-18
Agno Silveira
 
MVP
Solution

Hi Jessica,

After createOrUpdate, you can get the out Id, example:

And to remain in the same screen, example:

Regards.

2020-09-15 09-38-17
Jessica Marques

Agno Silveira wrote:

Hi Jessica,

After createOrUpdate, you can get the out Id, example:

And to remain in the same screen, example:

Regards.

 

 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. 


2021-06-09 13-39-18
Agno Silveira
 
MVP

Jessica Marques wrote:

Agno Silveira wrote:

Hi Jessica,

After createOrUpdate, you can get the out Id, example:

And to remain in the same screen, example:

Regards.

 

 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. 


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.


Regards.

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.