Receiving an event on the XPage
On the XPage, create an event to receive information from another component.
Procedure
- On the Events tab of the XPage, expand Components (Receive), double-click New Event, and provide a name for the event.
- (Optional) Specify a client script that returns the received
value to the server.Here is the default script:
If no adjustments are needed, no script is needed. If adjustments are needed, provide a script and return the adjusted value.return thisEvent.value
- Specify a server script that processes the value returned by the client.
Example
var element=getComponent('computedField1');
element.value=context.getSubmittedValue()