Trouble Calling The Message Handler

Description: I’ve encountered an issue with calling a message handler from (main) view Save button action. Here’s the scenario:

  1. I have a popup that saves photo details when the user clicks the Save button.
  2. In the popup view, I’ve created a message handler that includes an API call.
  3. After saving the photo, the popup should close automatically.
  4. However, the popup message handler is not being invoked when I call it from the (main) view.

I’ve tried using different scopes for the message handler, but it still doesn’t work. Any insights into why this might be happening?

You have some incorrect terminology and that may be affecting how you write your code.

Calling Message Handler from Main Screen

Perspective doesn't have "screens". It has views.

Inside the popup, I’ve created a message handler that includes an API call.

Message handlers are for sending messages from one view to another. There is no point in having the button send a message for a handler on the same view. You can just execute the code in the button onActionPerformed event.

If you are doing something different then please explain.