Visibility Based On UW not being a certain one
Visibility Based On UW not being a certain one
How can I set a visibility based upon the UW Lookup Code NOT being a particular code. For example I want a folder to show if the UW Lookup Code is NOT NA.
-
- Posts: 1383
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Visibility Based On UW not being a certain one
Here we make use of multiple (simple) tests to make sure there is an Underwriter in the order and it has a lookup code entered. You have to do these steps so an error will not occur if the order is not configured properly (for instance - if there is no underwriter).
Code: Select all
if Order.Underwriters.Count == 0:
# No underwriters: hide folder
return False
if Order.Underwriters[0].LookupCode is None:
# First underwriter has no LookupCode: hide folder
return False
# Hide folder if LookupCode is "NA"
return Order.Underwriters[0].LookupCode != "NA"
Bob Richards, Senior Software Developer, SoftPro
Re: Visibility Based On UW not being a certain one
Thank you so much.