I’m trying to catch the Outcome from an Entity’s Editor screen but it seems like it’s not as one expected.
The screen here is the LenderBrowse screen (created as normal way). And I’m catching the AfterCloseEvent as you can see.
As the code in the screenshot, I’m trying 4 options here:
- Press Create new but cancel
- Press Create new and then save/commit
- Press Edit but cancel
- Press Edit and then save/commit
In the four cases the logged outcome are the same. (CLOSE and then DISCARD) without any COMMIT.
Is this a bug or something intended? I prefer not having to call the screenBuilder to create the editor screen.
Thank you for your time,
P.S: I’ve also try afterCommitHandler but i think it doesn’t catch this event.