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:
- Extend the file entity to incorporate the required attribute, referred to as
ClassificationLabel. - Prevent the commit to the database if the
ClassificationLabelis not set by utilizing the Before Commit event. - Implement validation within the microflow that manages file uploads to permit uploads only when the
ClassificationLabelis 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.
0 Comments