Copy method: AnalyticInstance class
Syntax
Copy(NewID, ForceDelete&Record)
Description
Use the Copy method to copy all the data and metadata to a new analytic instance from the current analytic instance.
If the specified NewID exists, or any data for NewID exists, the data is not copied unless ForceDelete has been specified as true.
If a tree is attached to the existing analytic instance, all tree data is also copied to the new analytic instance.
In addition, the analytic instance and the tree information are not copied unless the record specified with the &Record parameter is populated with the existing analytic instance ID.
Parameters
| Parameter | Description |
|---|---|
|
NewID |
Specify the new analytic instance ID as a string. |
|
ForceDelete |
If the specified NewID exists, and ForceDelete is specified as false, the copy is cancelled. If the specified NewID exists, and ForceDelete is specified as true, the analytic instance specified by NewID is deleted, and a new analytic instance is created from the current ID. |
|
&Record |
Specify an already instantiated record object to pass in values to the Copy application package method that's defined with the specified analytic type definition. |
Returns
None.
Example
&ai.Copy("MYTESTCOPY", True, &MyRecord);