Closed steveoh closed 5 years ago
๐๐
I should also note that with python and string formatting, you can make this rule very generic...
constain_to_domain = '''if (!haskey($feature, '{0}') || isempty($feature.{0})) {{ return true; }} return iif (isempty(domainname($feature, '{0}', $feature.{0})), {{ 'errorMessage': 'Value does not fall within the allowable domain values. Input: ' + $feature.{0} }}, true);'''
No I havenโt reported it but I think itโs pretty well known.
๐๐
I should also note that with python and string formatting, you can make this rule very generic...