<-- Back

How to create one validation rule for two or more attributes in the domain model

Introduction

In a Mendix project, a validation rule must be created that applies to two or more attributes within the same entity. This ensures that the combined values of these attributes meet specific business requirements or constraints.

This option is unavailable under the Validation Rules because Mendix does not support this.

Environment

Studio Pro (all versions)

Instructions/Procedure

A workaround to achieve this requirement is to, before the commit, concatenate all key attributes into one and apply the validation in this single attribute.

Outcome

The workaround provided will help validate more than one key in the project.

Internal information related

  • 239010
  • C012YN4MJ3H/p1737377444079539

Additional information 

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.