Maximo Open Forum

 View Only
  • 1.  Conditional Require

    Posted 03-26-2025 16:24

    In the wotrack application, I am trying to conditionally require the Asset field based on the site. I have tried the following links with limited success

    Configure Conditional Properties to make a field required

    Maximo Required Field based on a Condition

    The field is required when the condition is true, that is working. However, if the condition is false, the field disappears. I've even tried putting "Display" to true when the condition is false. Am I missing something?


    #Administration

    ------------------------------
    Jason Johnson
    RSI
    ------------------------------


  • 2.  RE: Conditional Require

    Posted 03-26-2025 18:21

    Hi Jason,

    You do not need to do the false as you are not setting it to something other than its normal behaviour.



    ------------------------------
    Craig Kokay
    Principal Consultant
    COSOL

    email: craig.kokay@cosol.global
    #IBMChampion
    ------------------------------



  • 3.  RE: Conditional Require

    Posted 03-27-2025 08:05

    I've tried it with and without the false condition, both result with the attribute disappearing.



    ------------------------------
    Jason Johnson
    RSI
    ------------------------------



  • 4.  RE: Conditional Require

    Posted 03-31-2025 09:27

    I was able to accomplish this using an Automation Script (which was far easier to setup).

    Launch Point - Type Object, WORKORDER

    Event - Initialize Value

    Jython Script:

    from psdi.mbo import MboConstants
    from psdi.server import MXServer

    siteid = mbo.getString('SITEID')
    if siteid == 'BEDFORD':
        mbo.setFieldFlag("ASSETNUM", MboConstants.REQUIRED,True)



    ------------------------------
    Jason Johnson
    RSI
    ------------------------------