The M-Files Community will be updated on Tuesday, April 2, 2024 at 10:00 AM EST / 2:00 PM GMT and the update is expected to last for several hours. The site will be unavailable during this time.

Filter drop-downs based on class where it is used

Hi M-Files, 

I have potential use case where I have object type filled from the central database containing the set of values.

For specific classes however, I would need to show only a sub-set of those values.

Is there an option to filter it dynamically based where the built-in drop-down is used (e.g. based on the class)? Someone mentioned once Property Configurator, that it could use to filter dynamically drop-downs. I don't see it in M-Files catalog however.

Any ideas?

Thanks.

Dejan

Parents
  • You might consider making the value list a sub list of Class. Class is basically  a built in value list, and it is possible to configure other value lists as sub lists to Class. This way you can then specify the relevant options for each class in the sub list.

  • Hi ,

    Hm, not quite sure that I understand. In my case, I have object type automatically filled in from our central DB. On some classes, I would however like to hide some of the values and on others I would show all values.

    I could create other object type and pre-filled it with less data or create hard-coded value list but then I would need to use separate metadata in those other classes. That would influence views, search, groupings etc. I would prefer to re-use same metadata but somehow dynamically filter the options based on selected class. I couldn't find a way to do it in metadata card rule.

    Best,

    Dejan

  • Hi Dejan,

    I too am a bit confused about your use of the term "object type". In M-Files it has a special meaning. "Document" is an object type just like "Customer" or "Person" can be object types. You can have several classes within one object type, but you cannot  have several object types within one class. So, in that sense it is not possible to have a selection of object types within a class. Therefor I have interpreted you description as if "object type" really means "document type". Is that correct? If not, then please try to explain again...

  • Hi Karl, 

    Sorry for confusion.

    Basically, I have object type filled with data from database. I then use built-in property of its class in some document classes. Now I have potential use case where in some document classes I need to show only sub-set of values in that drop-down based where it is used. So I thought if I could filter it based where it is used (document class) that would work.

    I could perhaps make class underneath of the same object type but that would introduce the new property and this would not be useful actually.

    Best,

    Dejan

  • Sorry, I am not able to help you with this one. Hope someone else will chip in their ideas.

    You mentioned "Property Configurator" at first, you probably thought of "Property Calculator". That is an unsupported but quite useful tool. You should contact your M-Files reseller and ask them to help you evaluate whether this tool may do the trick for you, and if so, get a copy of the tool for you. Beware that there is no official support for that tool!

  • Hi Karl, 

    Yes, it is the "Property Calculator". Thanks. I will check if we could use it there.

    Best,

    Dejan

Reply Children
No Data