Sample Enterprise Capture Client Script to Restrict Document Delete and Page Delete action
(Doc ID 2313236.1)
Last updated on SEPTEMBER 13, 2018
Applies to:Oracle WebCenter Enterprise Capture - Version 18.104.22.168.0 to 22.214.171.124.0 [Release 11g]
Information in this document applies to any platform.
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.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!