Open the Action Collection Editor and click the down arrow in the Add button to Select Confirmation and configure its Data properties as described in the Click OK.

8-12 Desktop Integration Developers Guide for Oracle Application Development Framework

3. Click OK.

8.2.10 How to Invoke a Confirmation Action in an Action Set

The Confirmation action presents the end user with a simple message dialog that displays the title and prompt message specified in the Confirmation action properties. The execution of the action set pauses until the end user clicks one of the two buttons provided. If the user clicks OK, the action sets proceed with the remaining actions in the Action Set. If the user clicks Cancel, the action set is aborted at that point and the remaining actions are not invoked. As there is no error or success, the FailureActionID or SuccessActionID action is not invoked. To invoke a Confirmation action from a component 1. Open the integrated Excel workbook.

2. Open the Action Collection Editor and click the down arrow in the Add button to

open a dropdown list, as illustrated here.

3. Select Confirmation and configure its Data properties as described in the

following list: ■ CancelButtonLabel Specify an EL expression or string that evaluates to a message to appear in the Cancel button of the dialog. The default EL expression is: {_ADFDIres[DIALOGS_CANCEL_BUTTON_LABEL]} ■ OKButtonLabel Specify an EL expression or string that evaluates to a message to appear in the OK button of the dialog. The default EL expression is: {_ADFDIres[DIALOGS_OK_BUTTON_LABEL]} ■ Prompt Specify an EL expression or string that evaluates to a message to appear as the prompt of the dialog. The default EL expression is: {_ADFDIres[DIALOGS_ACTION_CONFIRM_PROMPT]} ■ Title SuccessActionID Specify an ADF Model action to invoke if an action set completes successfully. For example, you could specify an action binding that executes a commit action. A value for this property is optional and you can specify a final action, such as an action binding that executes a commit action, in the action set itself. Note that calling an action set that changes a record set’s currency during the execution of SuccessActionID methods is not supported. Table 8–3 Cont. ActionOptions Properties Set this property... To... Adding Interactivity to Your Integrated Excel Workbook 8-13 Specify an EL expression or string that evaluates to a title of the confirmation dialog to display at runtime. The default EL expression is: {_ADFDIres[DIALOGS_ACTION_TITLE]} 4. Optionally, enter a comment in the Annotation property about the purpose of the action that you are configuring. The value you set for this property has no functional impact.

5. Click OK.

Figure 8–9 shows the Action Collection Editor with default attribute values for a Delete button. Figure 8–9 Confirmation Action Attributes

8.2.11 What Happens at Runtime When an Action Set Provides a Confirmation