This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Filter Object Lookup based on Document Class

I'm not sure this can be done but I could be wrong.

I've seen that you can filter a Value List based on the Document Class (https://community.m-files.com/index.php?topic=7560.0 as an example) but is it possible to filter a Lookup property which is looking at an Object based on the document class?

The reason I ask, I'm looking at the QMS demo with regards to a customer who may want to use the QMS Module. The QMS has a Document Type object which holds the Doc Type abbreviation, PDF rendition instructions and so on.

However, I can choose any of these document types when I create a new document. Is there any way to filter this so that, for example, a document type of Standard Operating Procedure (SOP) can only be chosen if the Document Class is 'Controlled Quality Document'? Right now, I could create a document class of 'Simple Quality Document' and choose SOP as the document type, but then my SOP will not be subject to the same level of approval, change request etc. as it should be.

Is this just a case of educating those users who will be creating new controlled documents, or is there a way I can achieve this?

Thanks.
  • Well I haven't been able to figure this out so instead I've used an Event Handler to check the document class and document type and throw an error to the user, so that if they've assigned doc type 'procedure' to a class of Simple Quality Document they get a message stating that they must use the Controlled QUality Document class instead.

    Not perfect but does the job 8)