Folder UI settings (IRPCFolderUISettings)

View as Markdown

Stores the display settings of folders per user and as common defaults.

gRPC serviceMFiles.IRPCFolderUISettings
Book and levelVault API, standard
Methods7
Proto filemfiles/IRPCFolderUISettings.proto

Overview

Stores the display settings of folders: which listing columns are shown and how wide, sorting, grouping, view mode, and the layout of the panes. Settings are kept per user and folder, and an administrator can save common settings that users get by default. Used by M-Files clients; applications rarely call it.

A folder is identified by a UISettingsFolderID: a folder type (UISETTINGS_FOLDER_TYPE_...) and, for folders inside a view, the view ID. All folders of the same type in one view share their settings.

Two families of methods work on the same stored settings:

Data versions. Every stored setting has a data version. Readers pass max_data_version_interpretable; the server returns the newest stored version that is not greater. The structured state is stored in data version 15 on current servers.

Lookup order when reading a user's settings: the user's own settings, then the common settings, then the program defaults.

Rights. Any user can store their own settings. Saving common settings, or resetting all users to them, needs the vault right manage_common_uisettings. Common settings cannot be stored for a folder in a user's own (not common) view, and only the owner of such a view can store settings for its folders. Anonymous sessions cannot save settings.

SetFolderSelection stores a different per-user setting: folders that the user wants to see on a view level whose listing is cut by the folder limit.

Methods

MethodSummaryFacts
GetFolderUISettingsGets the display settings of a folder as an opaque blob.read session idempotent returns metadata structure version
GetFolderUIStateGets the display settings of a folder location as a structure.write session returns metadata structure version
ResetFolderUISettingsToDefaultsResets the caller's display settings of a folder to the program defaults or to the common settings, and returns the result as an opaque blob.write session idempotent returns metadata structure version
ResetFolderUIStateToDefaultsResets the caller's display settings of a folder to the program defaults or to the common settings, and returns the resulting state as a structure.write session idempotent returns metadata structure version
SaveFolderUISettingsSaves the display settings of a folder as an opaque blob, for the caller and optionally as the common settings.write session idempotent returns metadata structure version
SetFolderSelectionReplaces the calling user's folder selection for one view level: the folders that the user always wants to see on a level whose listing is cut by the folder limit.write session idempotent returns metadata structure version
SetFolderUIStateSaves the display settings of a folder location from a structure, for the caller and optionally as the common settings.write session returns metadata structure version