Maximo Integration

 View Only
  • 1.  check the length of a string

    Posted Wed December 15, 2021 08:45 AM
    How can I check the length of a string in Automation Scripts application
    I need to validate  That users will put the full path of the classifications
    Thanks for the help

    ------------------------------
    Shlomo Shvartz
    ------------------------------


  • 2.  RE: check the length of a string

    Posted Wed December 15, 2021 10:23 AM
    If you're using Python/Jython you can do something like this:

    if len(classString) < 100:
      mbo.setValue("DESCRIPTION", classString)​

    The key is that len() method.

    ------------------------------
    Tim Ferrill
    Solutions Consultant
    Intelligent Technology Solutions
    tferrill@webuildits.com
    www.webuildits.com
    @tferrill/@webuildits
    ------------------------------