What are the differences among End node, Current Screen (Destination) and Destination (set to the same module)?
Hello Christopher,
You can call a Screen Action using Submit or Ajax Submit.
What will happen at the end of the Action, will depend not only on the type of the end node, but also the method you used to call the action (Submit or Ajax Submit).1. When you do a request to a Screen Action and finishes the Screen Action with the END statement, you will stay in the screen (meaning that you will not navigate away). 1.1 If you used Ajax Submit, the only parts of the screen that will be rebuilt and sent back to the browser will be those you explicitly refreshed using Ajax Refresh. At the end of the Screen Action, those parts are rebuilt and the response is immediately sent back to the browser1.2. If you used Submit, at the end of the action the preparation will run again, the page will be entirely rebuilt and then the response will be sent back to the browser.In both cases, the page input parameters and local variables are not reset (they keep their values). 2. When you use a Destination (and Current is just a Destination to the page itself), after the end of the action the server will redirect your request to the new page, that will be built the same way as if you had clicked a link (it will be a page load). In this case, input parameters will be set to the values you are using in the Destination and the local variables will be reset, then the preparation will run, the page will be built and the response will be sent back to the browser. You actually "leave" the page and goes to a new page (even if you are going to the same page where you are).There are also some differences the way things happen if you use Ajax Submit or Submit as the method of the call to the Screen Action that navigates to the other page (that is not important here, I think).To summarize, when you END the action, you will stay in the page and page variables will not be reset, when you use a DESTINATION (to current or another page), you will be redirected to the selected page and is as if you had navigated to it (everything is reset).Hope this helps.
The End node destination do a commit to the transactions did in your database. In Current Screen, you will stay in the same screen as you are immediately before you run your code flow. Another destination, you will redirected to other screen or action as you want. In 2 last options, the commit doesn't have effect automatticaly.
Thanks and Best Regards,
Nuno Pereira