MaxTECH Maximo Technical User Group

Maximo Technical User Group

Designed to allow Maximo Administrators and Technical support staff a place to ask and answer technical and functional questions around Maximo. Learn from each other, collaborate and help improve Maximo in your organization.

 View Only

Help needed with an automation script

  • 1.  Help needed with an automation script

    Posted Tue November 19, 2024 07:28 AM

    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
    ------------------------------