cdfRegRemasterTrigger
cdfRegRemasterTrigger(t_triggerFunc) =>l_ids/ nil
Description
Registers a trigger that is called after instance remastering to set, map, or clear the parameter values on the remastered instance. The registered trigger function is only called when the resetOnRemaster environment variable is set to t.
It is possible to register a trigger before defining the function. No capturing of the function is performed and only the most up-to-date implementation is called. Only one trigger can be registered and any existing registration is replaced.
Arguments
Value Returned
Examples
Defines a remaster function. The callback MyRemasterFunc 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.
(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