cdfRemasterAction
cdfRemasterAction( [ ?noFormInitCallg_noFormInitCall] [ ?noFormDoneCallg_noFormDoneCall] [ ?paramListg_paramList] [ ?paramCallbacksg_paramCallbacks]) =>l_returnDPL
Description
Helper function for the CDF remastering callback function that is registered using cdfRegRemasterTrigger. The callback function is expected to return a SKILL disembodied property list (DPL) having specific named properties. The cdfRemasterAction function constructs this DPL from its key arguments.
The callback function must be defined in the following format:
(d_instId d_newMasterCVID) => l_returnDPL
-
d_instIdis the database instance ID being remastered -
d_newMasterCVIDis the ID of the new master -
l_returnDPLis a DPL created by thecdfRemasterActionfunction
Arguments
Value Returned
|
A disembodied property list (DPL) used by the remaster infrastructure. |
Examples
Defines a remaster function. The callback MyRemasterFunc function specifies:
-
The
formInitProcof the new master is not called. -
The
formDoneProcof the new master is called. -
The property
p1is set to the value1and the property valuesp2andp3are set to the instance value before remastering. -
The
?paramCallbackkey argument is not specified and the default 'paramListis used.
(defun MyRemasterFunc (instId newMasterCvId) cdfRemasterAction(?noFormInitCall t ?noFormDoneCall nil ?paramList list(list("p1" 1) "p2" "p3")))
Registers the remaster function.
cdfRegRemasterTrigger("MyRemasterFunc")
=>t
Performs the remastering on an instance.
dbRemasterAnyInst(inst new_cv)
=>t
Related Topics
Return to top