Available from version 14.0
You can create new revisions of the document by using the CLIC module. A button (link alternatively) can be configured using the targetPageAction or tpAction parameter with a NEW_REVISION value. This action can be used for:
Examples
Quotes
Groovy
def controller = api.newController()
controller.addHTML("<h2>New Revision: P-2147494497</h2><br/><span>Creates new revision for Quote P-2147494497.</span><br/><br/>")
controller.addButton("Create New Revision", controller.QC_DETAILS_PAGE, [
id: "P-2147494497",
tpAction: "NEW_REVISION"
])
return controller
Rebates
Groovy
def controller = api.newController()
controller.addHTML("<h2>New Revision: R-2147483898</h2><br/><span>Creates new revision for Rebate R-2147483898.</span><br/><br/>")
controller.addButton("Create New Revision", controller.RM_DETAILS_PAGE, [
id: "R-2147483898",
tpAction: "NEW_REVISION"
])
return controller
Contracts (Agreements & Promotions)
Groovy
def controller = api.newController()
controller.addHTML("<h2>New Revision: C-181</h2><br/><span>Creates new revision for Contract C-181.</span><br/><br/>")
controller.addButton("Create New Revision", controller.PM_CONTRACTS_PAGE, [
id: "C-181",
targetPageAction: "NEW_REVISION"
])
return controller
Sales Compensation
Groovy
def controller = api.newController()
controller.addHTML("<h2>New Revision: 26</h2><br/><span>Creates new revision for Sales Compensation 30.</span><br/><br/>")
controller.addButton("Create New Revision", controller.SC_PLANS_PAGE, [
id: "26",
tpAction: "NEW_REVISION"
])
return controller
The page names are defined as values of constants available in the AppPages interface.
See also the Pricefx Interceptor API documentation: