Moving objects

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

The user uses the options in move.csp to choose a new folder destination for the selected objects and then clicks the Move button. If the user clicks the Move button, then viewmanager.csp is reloaded, and action=moveaction is passed in. The following is a conditional statement in viewmanager.csp:

if(action == "move")

This statement ensures that if action=move appears in the query string, the IDs of the objects to be moved are requested and three properties for these objects are retrieved: SI_NAME, SI_PARENTID and SI_FILES. It then moves the file contents of the selected objects into their new folder destinations, and commits the changes to the APS.



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