Embedded Object Events

The Embedded object can send events to the Open Client at any time, but these events must first be defined by a defineEvent function call from the Open Client.

An event is sent to the Open Client by sending a message (see the Plugin Messages section for more information).

OpenAjax Hub Publish Function

 

 

Purpose

Sends an event message.

Parameters

name is the string ‘proiv.embeddedObject.OBJECTID.event’ where OBJECTID is replaced by the ‘objectId’ parameter supplied in the constructor function.

message is the object that must contain an id property that is the return ID of the event (see the eventObject parameter in the defineEvent function above) and an Output property that is an array of event data.

Remarks

 

Example

OpenAjax.hub.publish(‘proiv.embeddedObject.OBJECTID.event’,

{id:EVENTID,output:[]});

 

Comment on this topic

Topic ID: 800062