You are here: COM API reference > Designer object > GetParentFolder method

GetParentFolder method

Gets the name of the parent folder for a new document.

Syntax

Function GetParentFolder() As AMFolder

Return Value

Parent folder of the new document.

Remarks

Use this method to get the parent folder for a new document before its definite folder has been calculated (see BeforeWizard event).

Customization code cannot use the AMDocument.ParentFolder property during the creation of a document. It can use the AMUIExtension.GetParentFolder (m_Designer.GetParentFolder) method.

Actions that change the document state will fail when invoked before the parent folder is set. For example, code that submits the document after it has been created should be executed in the AfterWizard event.


www.bluecieloecm.com