Make Custom Field Read Only
Posted: Thu Jul 23, 2020 4:00 pm
I have a custom field that I need to make read only since we will not be using it anymore. The field is Order.Title.TitleProducts.RecInfoRestrictiveCovenants_150171#
The Context shows Order:Title:Commitment
What am I doing wrong here? I cannot get it to work.
from System import *
from SoftPro.ClientModel import *
from SoftPro.OrderTracking.Client import *
from SoftPro.OrderTracking.Client.Orders import *
#Rule logic with a non-COR style style name
def RestrictiveCovenants(args):
order = args.Context
args.Value = True
#Rename rule
RestrictiveCovenants._name_ = 'Commitment_RecInfoRestrictiveCovenants_150171#_ReadOnly'
The Context shows Order:Title:Commitment
What am I doing wrong here? I cannot get it to work.
from System import *
from SoftPro.ClientModel import *
from SoftPro.OrderTracking.Client import *
from SoftPro.OrderTracking.Client.Orders import *
#Rule logic with a non-COR style style name
def RestrictiveCovenants(args):
order = args.Context
args.Value = True
#Rename rule
RestrictiveCovenants._name_ = 'Commitment_RecInfoRestrictiveCovenants_150171#_ReadOnly'