Error Reporting Using Component Actions

Adding Validation to an Integrated Excel Workbook 12-3 An alternative approach to returning error message summaries generated by action sets invoked on a worksheet is to set {worksheet.errors} as the value for an action set’s Alert.FailureMessage property. This approach displays the generated error message summary in a dialog. Components such as the ADF Table and ADF Read-only Table components that have actions which interact with the Fusion web application can also return error message summaries. Set the following EL expression for the Value property of the ADF Output Text component or for an action set’s Alert.FailureMessage property: {components.componentID.errors} where componentID refers to the ID of the component ADF Table or ADF Read-only Table component that invokes the action. The EditPriceList-DT.xlsx file in the Master Price List module of the Fusion Order Demo application demonstrates how to return error message summaries generated by action sets invoked on a worksheet and by the actions of an ADF Table component. Figure 12–1 shows these EL expressions in design mode. Figure 12–1 EL Expressions to Return Error Messages in an ADF Output Text Component

12.4.2 Error Reporting Using Component Actions

ADF Desktop Integration provides actions that display error details generated by an ADF Table component or an integrated Excel worksheet. The action set in which you invoke one of these actions must include only one action. In general, action sets clear error labels and message lists when invoked. An action set that invokes one of the following actions returns error labels and message lists to the end user: ■ Worksheet’s DisplayWorksheetErrors action To display a worksheet’s error messages, configure the action set of a component on the worksheet or the worksheet ribbon button to invoke this action. For example, Figure 12–2 shows the Action Collection Editor dialog configuring the DisplayWorksheetErrors action as a DoubleClickActionSet item for an ADF Output Text component on the worksheet. 12-4 Desktop Integration Developers Guide for Oracle Application Development Framework Figure 12–2 DisplayWorksheetErrors Action At runtime, double-clicking the ADF OutputText component invokes the DisplayWorksheetErrors action as shown in Figure 12–3 . Figure 12–3 Runtime View of DisplayWorksheetErrors action For more information about the Worksheet’s DisplayWorksheetErrors action, see Section A.13, Worksheet Actions and Properties. ■ ADF Table component’s DisplayRowErrors action To display row-level failures that occur in an ADF Table component, invoke this action. Row-level failures occur when end user invokes the following actions: – Upload – DeleteFlaggedRows – DoubleClickActionSet invoked from an ADF Table component column For more information about using this action, see Section 12.5, Providing a Row-by-Row Status on an ADF Table Component. ■ ADF Table component’s DisplayTableErrors action Adding Validation to an Integrated Excel Workbook 12-5 To display table-level failures that occur in an ADF Table component, invoke this action. It is not intended that an ADF Table component column’s DoubleClickActionSet invoke this action. Instead add this action to an action set that returns error messages to end users when failures occur during invocation of the action binding specified by an ADF Table component’s BatchOptions.CommitBatchActionID property. At runtime, double-clicking the ADF OutputText component invokes the DisplayTableErrors action as shown in Figure 12–4 . Figure 12–4 Runtime View of DisplayTableErrors action For more information about ADF Table component actions, see Section A.9, ADF Table Component Properties and Actions.

12.5 Providing a Row-by-Row Status on an ADF Table Component