Event Handler Parameters - Edit Message to Web Container

This version of the Event Handler Parameters form is used with form events that have been assigned a Response > Type of Send Web Container Message.

The fields and options specific to this response type include these:

Field/Option Description
Message Type Use this drop-down list to select the type of message to be sent to the web container. Options include these:
  • sendMessageToContainer - Sends the message to the child Windows client frame. The JSON message (which does not actually have to be JSON, in this case) is passed to the child frame without parsing and is handled by the StdWebContainerMessageReceived event handler in the child frame's form.
  • openForm - Tells the child frame to open a new form after closing any form currently open in the frame. The JSON message sends a "parameter" that contains the same parameters that are used when you launch a form through a URL. After the form is opened, you can use a sendMessageToContainer request to manipulate the form.
  • refreshForm - Allows a currently opened form to be refreshed with a new filter.
  • registerMessageHandler - Allows a user to register and monitor for messages that are sent through the Workspaces proxy. If using this message type, the JSON Message field takes a comma delimited list of messages you want to monitor for. When you monitor for a message, typically you would then use the StdWebContainerMessageReceived event handler and check the StdWebPageMessageContext form variable for that message type and StdWebPageMessageData for the data.
  • (Other) - If you specify a message type that is not known to the Windows client application, it is by default sent to the web page container, which is expected to be Infor OS Portal or Infor Ming.le. The JSON message format is defined by Infor OS Portal or Infor Ming.le, or context widgets or context applications hosted within Infor OS Portal or Infor Ming.le. Each property must be surrounded by quotation marks.
Child Frame Number Use this field to specify a particular iframe number to which the message should go.
JSON Message Use this field when you want to create the actual message to be sent to the web container. This does not necessarily need to be a JSON-formatted message. The validity of content in this field despends on the type of message being sent.
Stop event handlers if expression is true When selected, this option instructs the system that, if the Prompt When expression is true, to stop further execution of the event and any following events in the sequence.

This can be especially useful when the prompt is tied to standard framework events.

Responses Use these options to specify what buttons are to display with the message.

You can further specify what event is to be generated when each button is clicked.

Finally, you can specify which button is to be treated as the default option.