Represents a specific reason for a field invalidation.
|
||
Description: Returns the element id of the target of this Validation |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: Boolean indicating whether or not this Validation is active |
||
Code Sample: var session = inrule.createRuleSession(); session.createEntity("Entity1"); session.applyRules(function(log){ var validations = session.getActiveValidations(); for(var i=0;i < validations.length; i++){ for(var j=0; j < validations[i].activeReasons.length; j++){ var validationReason = validations[i].activeReasons[j]; console.log(validationReason.isActive); } } }); |
|
||
Description: Array of ValidationReason |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: Returns the validation message from this Validation |
||
Code Sample: var session = inrule.createRuleSession(); |
Comments
0 comments
Please sign in to leave a comment.