M-Files API 22.6.11519.0
ShowNewObjectWindow Method
VaultObjectOperations Object : ShowNewObjectWindow Method
The mode in which the metadata card is opened.
The initial state of the new metadata card.
Description
Displays the new object metadata window.
Syntax
Visual Basic
Public Function ShowNewObjectWindow( _
   ByVal ParentWindow As Long, _
   ByVal Mode As MFObjectWindowMode, _
   ByVal ObjectCreationInfo As ObjectCreationInfo _
) As ObjectWindowResult
Parameters
ParentWindow
Mode
ValueDescription
MFObjectWindowModeEditThe default edit mode.
MFObjectWindowModeEditApplicationModalThe object shown in the object window is currently open in the application, too. Does not allow the file name to change.
MFObjectWindowModeInsertThe default insert mode.
MFObjectWindowModeInsertSaveAsTypeShows file type selection in the metadata card. The selectable file types can be specified using ObjectCreationInfo.
MFObjectWindowModeInsertSourceFilesThe source files specified in ObjectCreationInfo are added to the new object.
The mode in which the metadata card is opened.
ObjectCreationInfo
The initial state of the new metadata card.
Return Type
The ObjectWindowResult object that contains the return values of the function. Includes information on the cancellation of the metadata card.
Remarks

Use the VaultObjectFileOperations object to add new files to the created object.

This method is available only if M-Files API is used in the client interface mode.

See Also

VaultObjectOperations Object  | VaultObjectOperations Members  | VaultObjectFileOperations Object