Overview
Value lists in metadata cards can easily have a lot of items. The amount of shown items can be limited by typing the first letter/letters of the items name. Value lists can show a maximum of 50 items by default, but if you have for example 65 items on your list and you need to show them all at once, it can be done with a vault setting for newer versions, or small registry key tweak for older versions.
Impacted Products and Versions
2015.1, 2018, till 20.11 releases for the registry keys.
20.12 and later versions for the vault configuration setting.
Things to consider before using this setting
There are a few general considerations to keep in mind before altering the default value:
- Setting this threshold higher will have a performance impact as it takes longer to populate the value list before it can be shown to the user. In other words, setting this value too high can make M-Files slower.
- If this threshold is set lower, it may slightly speed up the opening of the metadata card.
- There is a search limit setting in the vault that can also limit the number of items in the value list dropdown (Configurations > Advanced Vault Settings > Configuration > Search > Limits > Value List Item Count Limit). If the number of items set to be shown in the dropdown is higher than the limit for the search setting, the search limit setting will be used.
- These settings also affect API usage (for example, searches or listing objects), not only the UI.
The following apply to the registry key modification:
- This key is set on a per user and per vault basis, so adding the key under HKEY_LOCAL_MACHINE will not work.
- Although this setting is set to a certain version, it is copied to newer client versions when updating the client software on the client computer.
- The registry key is not used in newer versions, only the vault-wide setting described below is available. While you may see the key in the registry if you configure it through the vault settings, the registry key will be overwritten by the vault setting every time the user logs in to the vault.
Solution
For 20.12 and later versions
In M-Files Admin, find the desired vault and expand it in the left-hand side navigation. Go to Configurations > Advanced Vault Settings > Configuration > Client > Desktop > Metadata Card > Value List Based Properties and find the "Maximum Number of Value List Items" setting. Set its value to the desired number and click the Save button in the upper right-hand side of the window.
Note that for this to work, central management of client settings must be enabled at the Configurations > Advanced Vault Settings > Configuration > Client level through the "Manage Client Settings Centrally" setting that must be set to "Yes". Make sure to first read the description shown on the Info tab in M-Files Admin.
For these settings to take effect, the end user may have to log in again.
For 20.11 and earlier versions
Usually, the registry key and value name do not exist beforehand so you will need to create them manually. The registry setting is:
Key HKEY_CURRENT_USER\SOFTWARE\Motive\M-Files\<version>\Client\Common\<Vault name>\DocumentPropertiesUI
Value name MaxValueListItemsInLookupListing
Data Type REG_DWORD (32-bit)
Value Data The number of objects that M-Files Server returns. The default value is 50
In the key, replace <version> with the M-Files version you are using and the <Vault name> with the name of the correct vault. For example, when using version 12.0.6550.8 and the used vault is named "Project Vault", the registry key would be HKEY_CURRENT_USER\SOFTWARE\Motive\M-Files\12.0.6550.8\Client\Common\Project Vault\DocumentPropertiesUI
A reboot on the client computer is needed for the setting to start working. Also restarting the M-Files services on the client computer is an option.
