Overview
In M-Files Web and M-Files New Desktop, sometimes a predefined class value is not populated into the object creation dialog. This happens when a new object is created from another object's metadata card as in the picture below, where the property is a multiselect object-type property based on the Document object type. The property could be, for example, 'Customer order confirmations'. A filter is applied in M-Files Admin to the property definition to limit it to only documents of one class, such as documents with the class 'Order confirmation'. In the classic M-Files Desktop, when clicking “Add value” in this property field, the document creation dialog opens with the class prefilled automatically, as in the picture below. However, in M-Files Web and M-Files New Desktop, the class field in the creation dialog appears empty when performing the same action.
In the picture on the right side, the user tried adding a 'Customer order confirmations' property to the metadata card by clicking the plus sign. The newly opened document creation window is on the left side, and on it is the 'Select class' where the 'Order confirmation' document class has been selected.
In short terms, the cause of this behavior is:
- Property is set to be a multiselect object type, based on the Document object type
- The property has a filter that limits it to only documents of one specific class (class is Order confirmation)
The issue with the predefined class not appearing in the document creation happens if:
- The property is used in a metadata card (property name Customer order confirmations)
- The user tries to create a new property object from the metadata card with 'Add value' or the plus sign pictured above
Workaround
The workaround is to manually add the property value to the object when it is created. This is needed when an object has multiple classes, is used as a property on a metadata card, and a property filter is applied to limit the object's class to one of the multiple classes. When the user selects the "Add value" option, which opens the object creation dialog, the user can manually select the desired class from the drop-down menu.
Solution
This is a known issue, with ID PA-847 (formerly ID CAT-438).
The issue has been fixed in version 26.8.16236.0 and later. Upgrading M-Files Desktop and Server is needed.
M-Files Desktop updates can be performed via automatic updates or using the installation package by selecting the "Simple upgrade" option (Manually updating M-Files). The latest installation packages are available at the M-Files website, Downloads – M-Files Product Center.
