Skip to main content

IShellUI

The IShellUI is available for the Modules on the module startup event

The IShellUI is available for the Dashboards from the ShellFrame property of the IDashboard.

Properties

NameTypeDescription
EventsIShellUIEventsReturns the event registering interface of the IShellUI interface.
VaultIVaultReturns the logged-in M-Files server connection.

Methods

NameDescription
BroadcastMessageSends a synchronous broadcast message to all shellUI modules of all applications running in the current shellUI (main-window).
GetFileTypeIconURLReturns the file type icon from the filename extension as data url.
GetObjectTypeIconURLGets the URL of the icon for the specified object type.
GetValueListItemIconURLRetrieves the URL of the icon associated with a specific value list item.
NotifyApplicationSends a synchronous notification message to all shellUI modules of a specific application running in the current shellUI (main-window).
ShowMessageShows the default M-Files message box with the specified content and appearance.
ShowPopupDashboardShows a dashboard in a separate window.

Events

EventDescriptionArguments
StartedSent when the object turns to started state.
StopSent when the application is stopping.
NewShellFrameTriggered when any shell frame object is created, including normal shell frames, common dialogs, and embedded or special shell frames.shellFrame - The new shell frame object.
NewNormalShellFrameTriggered when a normal shell frame object is created.
Note that this event is not triggered for common dialogs, or embedded or special shell frames.
shellFrame - The new shell frame object.
CrossApplicationNotificationBroadcasted message to multiple applications.appGUID - GUID of the target application, or null if broadcasted to all applications.
msgId - ID of the message which is sent to the other applications.
data - Custom data to be sent.
CheckInObjectsTriggered when the check in of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVers - The object versions being checked in.
properties - The properties to add/replace during check-in.
options - Flags that control the operation.
ObjectsCheckedInTriggered after the request to check in one or more vault objects succeeded on M-Files Server.checkedInObjects - The extended object info for checked-in objects.
CheckOutObjectsTriggered when the checking out of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objIds - The objects being checked out.
ObjectsCheckedOutTriggered after the request to check out one or more vault objects succeeded on M-Files Server.checkedOutVersions - The new checked-out object versions with properties and ACL.
previousVersions - The previous versions before checkout.
UndoObjectCheckoutsTriggered when the undoing checkout of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVers - The checked-out object versions being reverted.
force - If true, undo checkout is performed even if not checked out to the caller.
ObjectCheckoutsUndoneTriggered after the request to undo checkout of one or more vault objects succeeded on M-Files Server.restoredObjects - The extended object info for restored objects.
DestroyObjectsTriggered when the destruction of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objIds - The objects being permanently destroyed.
ObjectsDestroyedTriggered after the request to destroy one or more vault objects succeeded on M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
updatedObjects - Information about objects that were also updated during the operation.
DestroyObjectVersionsTriggered when the destruction of one or more object versions is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
objVers - The object versions being permanently destroyed.
ObjectVersionsDestroyedTriggered after the request to destroy one or more object versions succeeded on M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
updatedObjects - Information about objects that were also updated during the operation.
RemoveObjectsTriggered when the deletion of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objIds - The objects being deleted.
ObjectsRemovedTriggered after the request to delete one or more vault objects succeeded on M-Files Server.deletedObjects - The extended object info for deleted objects.
UndeleteObjectsTriggered when the undeletion of one or more vault objects is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
objIds - The objects being restored from deletion.
ObjectsUndeletedTriggered after the request to undelete one or more vault objects succeeded on M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
extObjectInfos - The extended object info for undeleted objects.
RemoveObjectFileTriggered when the removal of a file from an object version is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVer - The object version from which the file is being removed.
fileVer - The file being removed.
ObjectFileRemovedTriggered after a request to remove an object file from an object version succeeds on M-Files Server.objectVersion - Information about the latest version of the document after the operation.
RollBackObjectVersionTriggered when the roll back of a previous vault object version is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
objId - The object to roll back.
rollbackVersion - The version to roll back to. A new version is created using this as source.
ObjectVersionRolledBackTriggered after a request to roll back a previous vault object version succeeds on M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
extObjectInfo - Information about the object after the operation.
CreateObjectTriggered when the creation of a new object is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objectTypeId - The object type ID for the new object.
properties - The properties for the new object.
acl - The access control list for the new object.
options - Flags that control the operation.
checkIn - If true, the object is checked in immediately after creation.
objFileSources - The file sources for the new object.
ObjectCreatedTriggered after the request to create a new object succeeded on M-Files Server.isVisibleToUser - True if the created object is visible to the user.
createdObject - The created object with properties and ACL.
AddObjectFileTriggered when the addition of a new file to a document is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVer - The object version to which the file is being added.
title - The title of the new file.
extension - The file extension (without the leading dot).
createdAtUtc - The UTC timestamp when the file was originally created.
accessedAtUtc - The UTC timestamp when the file was last accessed.
writtenAtUtc - The UTC timestamp when the file was last written to.
changedAtUtc - The UTC timestamp when the file was last changed (content or attributes).
ObjectFileAddedTriggered after a request to add a file to a document succeeds on M-Files Server.fileVer - The version information of the added file.
objectVersion - The object version after the file was added.
RenameObjectFileTriggered when the renaming of a file in a document is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVer - The object version containing the file.
fileVer - The file being renamed.
title - The new title for the file.
extension - The new extension for the file (without the leading dot).
ObjectFileRenamedTriggered after a request to rename a file in a document succeeds on M-Files Server.objectVersion - The object version after the file was renamed.
SetPropertiesOfObjectVersionsTriggered when setting properties for one or more object versions is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
setPropertiesParams - Array of parameters for setting properties on multiple objects.
PropertiesOfObjectVersionsSetTriggered after a request to set properties of one or more object versions succeeds on M-Files Server.extObjectInfos - Extended object info for each object after the properties were set.
SetObjectVersionPermissionsTriggered when changing the permissions of an object version is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objVer - The object version whose permissions are being changed.
acl - The new access control list.
options - Flags that control the operation.
ObjectVersionPermissionsSetTriggered after a request to change the permissions of an object version succeeds on M-Files Server.isSpecifiedVersionStillVisible - True if the specified version is still visible after the operation.
specifiedVersion - Information about the specified version after the operation.
extObjectInfo - Extended object info after the operation.
SetObjectLevelPropertyTriggered when setting an object-level property is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.
objId - The object whose property is being set.
property - The property value to set.
options - Flags that control the operation.
ObjectLevelPropertySetTriggered after a request to set an object-level property succeeds on M-Files Server.extObjectInfo - Extended object info after the operation.
ModifyObjectVersionLabelsTriggered when modifying the labels of an object version is requested.
This event occurs before the request is passed to M-Files Server.

Return a promise that resolves true to proceed, or Error object/false to cancel the operation.
When resolving with an Error object, its message will be shown to the user, enabling you to provide a custom explanation for why the operation was stopped.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
objVer - The object version whose labels are being modified.
clearFromOtherVersions - If true, the specified labels are cleared from other versions.
append - If true, the labels are appended to existing labels; if false, existing labels are replaced.
labelIDs - The IDs of the labels to set.
ObjectVersionLabelsModifiedTriggered after a request to modify the labels of an object version succeeds on M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
objVer - The object version whose labels were modified.
clearFromOtherVersions - If true, the specified labels were cleared from other versions.
append - If true, the labels were appended to existing labels.
labelIDs - The IDs of the labels that were set.
ChangeVaultLanguageTriggered when changing the vault language is requested.
This event occurs before the request is passed to M-Files Server.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
languageId - The ID of the new vault language.
VaultLanguageChangedTriggered after the vault language has been changed.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.
languageId - The ID of the new vault language.
LogOutTriggered when logging out of the vault is requested.
This event occurs before the logout is processed.

NOTE: Stability is experimental. Non-backward compatible changes or removal may occur in any future release. Use of this feature is not recommended for production environments.