Page-Copy method |
Use this method to copy the contents of a source clipboard page to a new or previously created destination clipboard page. The source page is not altered. BUG-2802 BUG-15142 BUG-15417
After this method completes, the destination page contains properties copied from the source page, and can contain additional properties from a model.
This method has four parameters:
Parameters |
Description |
CopyFrom |
Optional. Enter the name of the source page from which to obtain property values to copy. If blank, the system uses the Step Page of the current step, or the primary page of the activity if the Step Page field is blank. OSMAE SenthurK 3/2/07B-21372 SR-5365 B-22490 B-24701 BUG-2087 |
CopyInto |
Enter the name of the destination page, which may or may not already exist. If it exists, it must have the same class as the source page. The current contents of the destination page are erased before the copy operation occurs. B-20001 ok to copy to self SR-1482 B-17085 BUG-1235B-24701 BUG-2087 Choose a valid page name. See Understanding page names and reserved pages. To create a destination page that is a new, last page in a
|
Model |
Optional. Identify a model to be applied to the destination page before copying data from the source page. |
PageList |
Optional. To save the name of the new page as the final
element in a list, identify a The system appends the name of the new page as the value of
the last element of the |
The Page-Copy method works as follows:
Good
.Value List
property is identified in the fourth
parameter, the system adds the name of the new page as the final
element in the list.Page names are unique within the clipboard. If an existing page with the CopyInto destination name is already present at the same point in the clipboard structure, the system deletes it and replaces it with an empty page.
This method updates the pxMethodStatus property. See How to test method results using a transition.