The receiving form must be "listening for" messages from the
sending form. The receiving form does this by registering for the custom
message type specified in the sending form.
To set up the receiving form:
-
Select a component on the form and then click the Events
tab on the property sheet.
-
Create a form event handler, typically for the
event.
-
Click the ellipsis (...) button for
the Primary event field.
-
In the Event Handlers dialog box, click New.
-
In the Event Handler Properties dialog
box, specify the name of the event in the Event
field.
Note: Assuming
you are using a StdFormInitCompleted event, that event name should
already be populating the Event field.
-
For the Response > Type, select
Send Web Container Messsage.
-
Click the ellipsis button for the Parameters
field.
-
In the Event Handler Parms (Parameters)
dialog box, click Type Specific Parameters.
-
In the Edit Message To Web Container
dialog box, from the Message Type drop-down
list, select registerMessageHandler.
-
In the JSON Message field, specify
the name of the custom message type that you created in Step 9 of
the previous section.