Sample Enterprise Capture Client Script to Restrict Document Delete and Page Delete action

(Doc ID 2313236.1)

Last updated on OCTOBER 06, 2017

Applies to:

Oracle WebCenter Enterprise Capture - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms

Capture Client allows the user to remove/delete a document, even if it is the only document in the batch. This results in an empty batch with zero documents, which becomes useless after that. This also errors with an array Out-of-Bound exception in the Java console. The only option in this scenario is to delete the batch and recreate a new one. Can there be an option to "Add documents" to an empty batch?  Alternately the "Remove/Delete Document" menu could be disabled when there is only a single document inside the batch.

If this cannot be achieved, can a new PreDocumentDelete function be created and exposed for calling with Client Scripts?  This should be triggered whenever the Delete Document menu is clicked. A "Canceled" property should also be provided (like the PreBatchDelete function) that will enable us to restrict document delete on a conditional basis through the Client Script customization.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms