Move a folder to another parent folder
Product line
Standard
|Expert
Operating mode
CLOUD ABO
|ON-PREMISES
Modules
Services & CRM
Budget & Phases
Purchases
Resource Planning
Business Intelligence
Changes the parent folder of the current folder. The folder is moved to another folder.
On the folder to be moved. It must not be a root folder. To move a root folder, use the Script: Move a root folder .
The new parent folder must be specified by the ID. You can view the ID by right-clicking Property on the folder.
# coding: windows-1252
#
#---Description: Move folder
# Class: Entry
# Objectscript: No
# Containerscript: Yes
# Eventtype: None
#---Changes the parent folder parent folder of a specific folder.
# The folder will be moved to another folder.
# The new parent folder must be specified via the ID.
# You can find the ID on the folder with right mouse button > Property.
#---03.02.2004, Vertec AG: created.
#---03.03.2017, sr: Script created in Python.
def main():
parentord = None
ord = argobject
if not ord.eval('oclisKindOf(AbstractFolder)'):
vtcapp.msgbox('You can only run this script on folder execute’)
else:
#determine new parent folder parent folder
parentid = vtcapp.inputbox('Vertec’,'Specify the ID of the new parent folder’,'')
try:
parentord = vtcapp.getobjectbyid(parentid)
except:
vtcapp.msgbox('No folder with
SQL folder found’)
else:
try: