My test setup is a Gateway timer script that sends a message using system.util.sendMessage that is supposed to be received by an event handler in a view object.
Here is the GW timer script that runs every 4 seconds
The project and message names match, and the GW script is writing to the wrapper log, but I am not receiving events on the object.
The only thing I can think of is that I am not receiving events because I am testing the object in the designer. Is that a possibility, and also how else do you debug messages?
Messages sent to Perspective with system.util.sendMessage() are only received in Session Message Handlers.
Perspective views and components can only receive messages that come from system.perspective.sendMessage(). Consider using a session message handler to rebroadcast for components to receive.
To be clear, you are talking about putting an event handler here that receives the GW message? (and that event handler then broadcasts a session message using system.perspective.sendMessage())
Technically, yes I should use the logger functionality, but simple prints end up in the wrapper log as INFO messages. (and I did try the official logger for that message received above, and still got didly squat.)
Do as @lrose said and use named parameters whenever possible (sadly, some functions don't accept them) instead of relying on Nones to put your parameter at the right place.