cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to validate the maxLength restriction

Former Member
0 Likes
376

I have added the new attribute maxLength in ClassificationAttribute Item type I need to Validate if product is part of classifying attribute and the classification attribute length restriction. In Details: - Invoke the custom validation service: CustomAttributeValidationService. If the product is part of classification attributeassignment for that attribute, fetch the maxLength attribute from ClassificationAttribute and validate with the input attribute. - If the input attribute length field exceeds the maxLength attribute, throw custom exception CustomAttributeLengthException with appropriate message. Please any one help me on this

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1320010
Participant
0 Likes

if you want a full blown validation you could check this the validationCoverageCalculationStrategy. However here you don't have to maintain the maxLength at the item itself , it will move in as AttributeConstraint