Skip to main content

ExternalSiteWindowManager.AttachMessageHandler

AttachMessageHandler

Syntax

AttachMessageHandler(<Handler>)

Parameters

<Handler> (required)

Type: CallbackDescription. Contains the description of the procedure to be called when a message from an external website is received with the following parameters:

  • <Message> - type MessageFromExternalSite,
  • <AdditionalParameters> – the value specified in CallbackDescription object.

Description

Attaches a handler procedure to be called upon receiving a message from an external website. Multiple handlers are allowed. In this case, all handlers will be called upon receiving a message from an external website. The handler calling order is not defined. The handler is replaced by the method call with the same handler. where the following parameter values are identical to those of the handler specified in this method:

  • ProcedureName
  • ErrorHandlerProcedureName
  • Module
  • ErrorHandlerModule

If the external website window is unavailable (the Enabled property has the False value), an exception with the following text is generated upon calling this method: "External website window is not available".

Availability

Thin client, web-client, mobile client, thick client.

See also

MessageFromExternalSite

Translation

Русская версия: МенеджерОкнаВнешнегоСайта.ПодключитьОбработчикСообщений (ExternalSiteWindowManager.AttachMessageHandler)