In the workorder table I created a field called PAYBYPCARD and it is defined in Maximo as a yes/no field
When a workorder is saved, I need that field to be evaluated to see if it has been checked. If it has been checked I need workorder to require 3 other fields to be filled out.
Python script
#PAIDBYPCARD SCRIPT
if PAYBYPCARD == 1:
PCARDAMOUMT=True
PCARDHOLDER=True
PCARDPAIDDATE=True
I also tried this version:
#PAIDBYPCARD SCRIPT
if PAIDBYPCARD == 'YES':
pcardamount_required=True
pcardholder_required=True
pcardpaiddate=True
I get a java boolean evaluation error
------------------------------
Paul Bishop
------------------------------