Copying objects

Users can copy folders and reports to a destination folder by selecting items from the Contents list and clicking the Copy To button. When the button is clicked, the Copy function is called. The Copy function retrieves the list of selected source objects, and then loads move.csp, passing in the following parameter value: moveaction=copy.

If the user clicks the Copy button on the Copy page, then viewmanager.csp is reloaded, and action=moveaction is passed in. The following is a conditional statement in viewmanager.csp:

if(action == "copy")

This statement ensures that if action=copy appears in the query string, the IDs of the source objects to be copied are requested and all the properties for these object are retrieved.

Next, the Copy subroutine is called. This subroutine copies the selected source items to the destination area, and then commits the changes to the APS. It then calls the CopySubContents subroutine so that each object's subcontents are copied to the destination area.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com