How to configure callback handler?
The Callbacks Sample demonstrates the capability to register for events related to document save, edit and discard actions.
The system integrators can add custom code in the callbacks to achieve use cases like attribute validation before saving document to server or performing some actions before/after checkout or cancel checkout action.
Configuration
To configure the Callbacks Sample, follow the steps mentioned below:
- Copy the following files to the Quark XML Author installation folder, e.g. “C:\Program Files\Quark\Quark XML Author”
Quark.CMSAdapters.Samples.XA.QPP.Callbacks.dll
-
Quark.CMSAdapters.Samples.XA.QPP.Callbacks.pdb
- Add the highlighted EI below to the
[Language Folder]/AppConfig/AppConfig-ext/MethodInfo_ext.xml
file
<Method id="RegisterCallbacks" assembly="Quark.CMSAdapters.Samples.XA.QPP.Callbacks" class="Quark.CMSAdapters.Samples.XA.QPP.Callbacks.ExtensibilityMethods" method="RegisterCallbacks" />
Add the highlighted below to the [Language Folder]/AppConfig/AppConfig-ext/ Connect_ext.xml
file
<ExtensibilityMethod id="RegisterCallbacks"/>
Download Sample