Receiving an event on the XPage

On the XPage, create an event to receive information from another component.


  1. On the Events tab of the XPage, expand Components (Receive), double-click New Event, and provide a name for the event.
  2. (Optional) Specify a client script that returns the received value to the server.
    Here is the default script:
    return thisEvent.value
    If no adjustments are needed, no script is needed. If adjustments are needed, provide a script and return the adjusted value.
  3. Specify a server script that processes the value returned by the client.


This example of a server script sets the value of a computed field to the received value passed by the client script:
var element=getComponent('computedField1');