<-- Back

Document validation of the classification label

Issue

The business case stipulates that the Mendix application must be capable of reading the metadata and validating the classification label associated with a document file (such as docx, xlsx, pptx, pdf, etc.) before the upload process.

This functionality is not available, but is essential to ensure that the application can prevent the uploading of files that lack a classification label.

Environment

Studio Pro (all versions)

Cause

In Mendix, there is currently no built-in feature available to verify file metadata, such as classification labels, before the upload process.

Solution/Workaround

The necessary functionality can be accomplished through a custom implementation logic. 
One potential approach is as follows:

  1. Extend the file entity to incorporate the required attribute, referred to as ClassificationLabel.
  2. Prevent the commit to the database if the ClassificationLabel is not set by utilizing the Before Commit event.
  3. Implement validation within the microflow that manages file uploads to permit uploads only when the ClassificationLabel is established.

Internal information related

242066

Additional information 

The specific steps may vary according to the requirements. It is advisable to consult the forum or seek assistance from the Expert Service team should you require support with the implementation.

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.