Default Policy Lookup Code
Posted: Wed Aug 28, 2019 11:29 pm
I created the following basic code to try defaulting the Policy Lookup Code to a specific value, which it does. However, this apparently does not trigger the Change Event to cause the rest of the screen to be loaded.
Is there a way to force the application to react to this change within a COR or is this only possible through Custom Code/Integration?
Thank you
Is there a way to force the application to react to this change within a COR or is this only possible through Custom Code/Integration?
Code: Select all
def TitleInsuranceCalculation_PolicyLookupCode_Value(args):
# Exit if processing template.
if args.Context.Root.IsTemplate:
args.RunDefaultRule()
return
# Exit if not fully initialized
if (args.Context.Parent is None):
args.RunDefaultRule()
return
# Exit if Product Code is Not TSG
if (args.Context.Root.ProductType.Code.upper() != 'TSG'):
args.RunDefaultRule()
return
# Exit if Underwriter LookupDode in Not WC
if (hasattr(args.Context.Underwriter,'LookupCode')):
tiuCode = args.Context.Underwriter.LookupCode.upper()
else: tiuCode = 'NotSet'
if (tiuCode != 'WC'):
args.RunDefaultRule()
return
# Exit if not Owner Policy Type is Not Owners
if (hasattr(args.Context,'PolicyType')):
policyType = args.Context.PolicyType
else: policyType = None
if (policyType is None or policyType != PolicyType.Owners):
args.RunDefaultRule()
return
#Set the Policy LookupCode
args.Value = "WC-CA-Trustee's Sale Guarantee Policy" #Testing known value