on ‎2018 Nov 06 4:09 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.