Case insensitive uniqueness constraint

Case insensitive uniqueness constraint

book

Article ID: KB0071226

calendar_today

Updated On:

Products Versions
TIBCO EBX All supported versions.

Description

In this article we will provide you a ConstraintOnTableWithRecordLevelCheck Java implemtation that acts as a case insensitive uniqueness constraint.

You will have to activate the pathToField parameter in which you will specify the relative path from the table node to the string field you want to apply the constraint on (example: ./str).

The checkTable method will be called while performing a validation report at table level. It will go through all records of the table and return groups of records with the same field values (case insensitive).
The checkRecord method will be called in a record form context. It will forbid the user to save a record for which the field value is already existing in another record.

Please refer to the ConstraintOnTableWithRecordLevelCheck java documentation.

Resolution

The Java class is attached to this article.

Here are few screenshots showing how it behaves:
  • Table validation report with errors 


Table validation report with errors
  • Blocked submit on record form


Blocked submit on record form
 

Issue/Introduction

ConstraintOnTableWithRecordLevelCheck Java implemtation that acts as a case insensitive uniqueness constraint.

Additional Information

docs.tibco.com/pub/ebx/5.9.7/doc/html/en/Java_API/com/orchestranetworks/schema/ConstraintOnTableWithRecordLevelCheck.html

Attachments

Case insensitive uniqueness constraint get_app