RejectChanges

You can use the RejectChanges function to remove all changes made to an Optiva object during the COMPILE_ALL workflow. The function helps manage script compilation errors during bulk operations and prevents invalid scripts from being saved.

Note: This function is used in the COMPILE_ALL workflow to handle compilation errors in scripts during bulk operations.

When to use

You can use this function to:

  • Reject changes when script compilation errors are detected during bulk compilation operations.
  • Discard changes to objects with compilation errors to prevent invalid scripts from being saved.

Syntax

DataSet RejectChanges(string ObjectSymbol, string ObjectKey, string DetailCode);

Parameters

Parameter Type Required Description
objSymbol string Yes

The symbol of the object.

Note: You can use empty quotation marks ("") for the current workflow symbol.
objKey string Yes

The key of the object.

Note: You can use empty quotation marks ("") for the current workflow symbol.
@DetailCode string Yes The system detail code used to return the DataSet.

Return value

The application returns a DataSet containing information about the rejected changes.

Prerequisites

  • The function is primarily designed for use in the COMPILE_ALL workflow.
  • You can use the function only when unsaved changes are available for rejection.