Working with simple actions

You can handle a server or client event with a simple action or groups of simple actions.

About this task

Do the following to handle an event on an XPage with a simple action or simple action group:

Procedure

  1. Put focus on a control to handle a control event. Put focus outside all controls to handle a page event.
  2. Click the Events tab.
  3. In the left pane, select the event to be handled.
  4. In the middle pane, click the Server or Client tab.
  5. Click Simple Actions.
  6. Add a single action as follows:
    1. If you are adding the action to a group, select the group.
    2. Click Add Action.
    3. Fill out the Add Simple Action dialog. Specify the simple action and its arguments, and click OK.
    Repeat this step to add additional actions to a group.

    If you add a second action to the root, a parent group is automatically created.

  7. Add a simple action group as follows:
    1. If you are nesting the group, select the parent group.
    2. Click Add Group.
    3. For the Add Simple Action Group dialog, click OK if the group executes unconditionally. Otherwise provide a script or EL expression that returns true to execute the group or false to not execute the group.
    Repeat this step to add additional groups.

    Go to the previous step to add a simple action to the group.