Folder Object Methods

The Folder object methods affect the current folder object.

ClosedApplyPropertyValues Method

Saves the current property values to the current folder object.

Syntax

ApplyPropertyValues()

Parameters

This method accepts no parameters.

ClosedChangeFolderType Method

Changes the folder type of the current folder object.

Syntax

ChangeFolderType(NewFoldertype As String)
Parameters
Name Description

NewFolderType

The name of the new folder type.

Remarks

For events to occur for this method, the ChangeFolderTypeEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y (default).

ClosedConvertToProject Method

Converts the current folder object to a specified project folder.

Syntax

ConvertToProject (ProjectDefinitionName As String)
Parameters
Name Description

ProjectDefinitionName

The name of the project definition.

ClosedCopyProperties Method

Copies all of the property values of the current folder to a specified folder except for an optional array of property names.

Syntax

CopyProperties(PropertySetName As String, TargetFolder As Folder, [ExcludeProperties] As String)
Parameters
Name Description

PropertySetName

Name of the property set to copy.

TargetFolder

Folder object to which to copy the properties.

ExcludeProperties

Optional one dimension array of a property names to exclude from copying.

Remarks

The following example copies all properties in the property set MyPropSet to the specified folder object except for the properties named Prop1 and Prop2.

Folder.CopyProperties "MyPropSet", Folder, Array("Prop1", "Prop2")

ClosedDelete Method

Deletes the folder.

Syntax

Delete()

ClosedExecTransition Method

Executes the specified project workflow transition for the current folder object.

Syntax

ExecTransition(WorkflowTransition As IASWorkflowTransition, [Comments As String], [Managers As String])
Parameters
Name Description

WorkflowTransition

An object that represents the project workflow transition to run.

Comments

Optional comments to append to the comment log.

Managers

Optional user names to assign as the new workflow managers.

Remarks

For events to occur for this method, the PrjWFEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y(default).

ClosedFindDocuments Method

Used to search the documents in a folder.

Syntax

FindDocuments (Wildcard As String, [DocumentTypes], [PropertyFilters], [LogicalOR As Boolean = False], [SearchScope As Integer = AS_SEARCHSCOPE_CURRENTFOLDER) As IASDocuments
Parameters
Name Description

SearchScope

There are two constants that can be used for this parameter: AS_SEARCHSCOPE_CURRENTFOLDER or AS_SEARCHSCOPE_RECURSIVE.

  • AS_SEARCHSCOPE_CURRENTFOLDER is used to search only the current folder

  • AS_SEARCHSCOPE_RECURSIVE is used to search the current folder and any subfolders

ClosedGetExpectedTransitionResult Method

Returns the expected result of executing the specified project workflow transition for the current folder object.

Syntax

GetExpectedTransitionResult(Transition As IASWorkflowTransition) As AS_WORKFLOW_TRANS_RES
Parameters
Name Description

Transition

An object that represents the project workflow transition to run.

Remarks

Returns a long integer that is equivalent to one or more of the AS_WORKFLOW_TRANS_RES constants that represents the expected results. Use this method to determine the current consensus status of parallel workflows.

ClosedGetSubFolder Method

Returns a folder object that represents a subfolder of the current folder object.

Syntax

GetSubFolder(Name As String, [TypeName As String], [Options As Long = 0]) As IASFolder6
Parameters
Name Description

Name

The name of the subfolder to return.

TypeName

Folder type of the subfolder to return. To return a standard folder, specify an empty string.

Options

Optional long integer that represents one or more AS_NEWFOLDER_OPTIONS constants.

Return Value

A Folder object.

Remarks

Pass the AS_NFO_CREATE_IFNOTEXIST constant to this method to create a new subfolder equivalent to the NewFolder method.

For the wizard events to occur for this method, the NewWizardEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y. The default is N.

ClosedGetSubFolderNames Method

Gets the names of the subfolders of the current folder object.

Syntax

GetSubFolderNames([FolderType As String])
Parameters
Name Description

FolderType

Optional folder type of the subfolders to return.

Return Value

An array of subfolder names.

ClosedGetUsersWithRole Method

Gets all users with a specified security role for the current folder.

Syntax

GetUsersWithRole (Role As String)
Parameters
Name Description

Role

The name of the role for which to get users.

Return Value

An array of strings containing the user names.

ClosedInterlock Method

Returns the result of evaluating the specified interlock.

Syntax

Interlock(InterlockName As String, [InterlockLocationRLOCK_LOCATION = AS_WFIL_PARENT_PROJECT], [DefaultResult As Boolean = False]) As Boolean
            
Parameters
Name Description

InterlockName

The name of the interlock to evaluate.

InterlockLocation

The location of the interlock to evaluate expressed as one of the AS_WFINTERLOCK_LOCATION constants.

DefaultResult

A value to return by default if the interlock is not satisfied.

ClosedLinkToPortal Method

Links the Meridian project to a Meridian Portal project

Syntax

LinkToPortal()

Parameters

This method accepts no parameters.

ClosedMoveTo Method

Moves the current folder to the specified folder.

Syntax

MoveTo(TargetFolder As IASFolder3, [Options As Long = 0], [Comments])
Parameters
Name Description

TargetFolder

An object that represents the folder to which to move the current document object.

Options

An optional long integer that represents the move options. One or more of the AS_MOVE_OPTIONS constants.

ClosedNewFolder Method

Creates a new subfolder of the current folder object.

Syntax

NewFolder(FolderName As String, TypeName As String, [Options As Long = 0]) As IASFolder
Parameters
Name Description

FolderName

The name of the new folder.

TypeName

Folder type name for the new folder. To create a standard folder, specify an empty string.

Options

Optional long integer that represents one or more AS_NEWFOLDER_OPTIONS constants.

Return Value

A Folder object.

Remarks

The AS_NFO_CREATE_IFNOTEXIST constant can also be passed to the GetSubFolder method to create a new subfolder.

The AS_NFO_SHOWWIZARD is not supported in PowerWeb.

ClosedReassignWorkflowManagers Method

Reassigns the workflow definition managers of the current folder object.

Syntax

ReassignWorkflowManagers(Managers, [Comments])
Parameters
Name Description

Managers

The user names of the new workflow managers.

Comments

Optional comments to add to the document's Comments property.

Remarks

For events to occur for this method, the PrjWFEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y (default).

ClosedReroute Method

Reroutes the current folder object to a specified project workflow state.

Syntax

Reroute(WorkFlowState, [Comments], [Managers])
Parameters
Name Description

WorkFlowState

The name of the state to which to reroute the folder.

Comments

Optional comments to add to the folder's Comments property.

Managers

Optional user names of the new workflow managers.

ClosedResetPropertyValues Method

Resets the properties of the current folder object.

Syntax

ResetPropertyValues()

Parameters

This method accepts no parameters.

ClosedUnlinkFromPortal Method

Removes the link from the Meridian project to Meridian Portal project.

Syntax

UnlinkFromPortal()

Parameters

This method accepts no parameters.

2024