Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home

Class Groups and Their Uses

Last updated on 12 February 2021

Overview

Class groups are part of the M-Files metadata structure. They are predominantly used during the creation of Document type objects to group like classes together (Finance, Engineering, Marketing) and make finding and choosing a class quicker for end users.
Classes can be in none, one, or many different class groups. Since this is pretty unique, it makes it hard to use class groups in other parts of the system such as directly on the metadata card or making a value list a sub-list of class groups.
 

Solution

It's not really possible to have the class group shown on the metadata card through the out of the box features in M-Files. You could use the API to get the class group via some of the following methods and fill it out on the metadata card via a script or event handler:

https://www.m-files.com/api/documentation/#MFilesAPI~Vault.html
https://www.m-files.com/api/documentation/#MFilesAPI~Vault~ClassGroupOperations.html
https://www.m-files.com/api/documentation/#MFilesAPI~VaultClassGroupOperations~GetClassGroups.html
https://www.m-files.com/api/documentation/#MFilesAPI~ClassGroup~Members.html

Other than that, there's no real way to put the Class Group on the metadata card.

There is not a way to have a value list be a sub-list of Class Groups.

Class Groups can be used as a grouping level for a View.

 

Still need help?

On this page