Can you help me with a code to Auto Fill the Title Officer/Examiner Field in the title status with the same person that marks themselves in the Date/Time Completed/ Completed By: Person in the Schedule A.
When the Title Examiner fills in the Completed by date the system auto fills their name in the "completed by" field, I want this name to auto-pull into the "Title Officer/Examiner" field in the Title Status section too.
Other things to consider:
- Be aware that if a user manually enters a Title Officer in the field, then your COR won't run since user entered values have precedence over CORs.
- Some customer implementations required that users should not be allowed to enter certain field. In this case you can also create a ReadOnly rule to prevent user input. ReadOnly rules do allow CORs and all other ways to update the value.
Code: Select all
from System import * from SoftPro.ClientModel import * from SoftPro.OrderTracking.Client import * from SoftPro.OrderTracking.Client.Orders import * def Title_Officer_Value(args): # Initialize identity to value that will clear out the field. # This is the value that we use if we can't find a better one. identity = None # We will use a contact on first Title Insurance Calculation policy. # We are creating a temporary variable to make typing easier on the programmer. tic = args.Context.Root.Title.TitleInsuranceCalculations # If the loan policy exists and has a CompletedBy person, update the identity. # If not, check the owners policy. # If neither has a CompletedBy person then do nothing. if tic.LoanPolicy and tic.LoanPolicy.CompletedBy: identity = tic.LoanPolicy.CompletedBy elif tic.OwnersPolicy and tic.OwnersPolicy.CompletedBy: identity = tic.OwnersPolicy.CompletedBy # At this point, we have an actual CompletedBy person or a value that will # show up as blank when the value of the field is set. args.Value = identity
Try and use the provided code as an example to modify for your specific circumstance. If you have specific questions about your code as you develop it, please submit them. If you need SoftPro to develop custom CORs for your organization, please contact your SoftPro customer service representative for design services.