Maximo Integration and Scripting

 View Only
Expand all | Collapse all

mbo.setValue(status.....) does not insert row into wostatus table

  • 1.  mbo.setValue(status.....) does not insert row into wostatus table

    Posted Tue May 24, 2022 03:04 PM
    Hello,

    In one of the automation scripts, I am trying to set the value of work order status to "WREL" something like

    mbo.setValue('status','WREL', MboConstants.NOACCESSCHECK | MboConstants.NOVALIDATION_AND_NOACTION)

    The value of the status is getting changed but it does not insert the corresponding row in wostatus MBOv. Do I need to do anything different?

    I can try an alternative method:

     mbo.changeStatus('WREL', <date>,  <memo>, MboConstants.NOACCESSCHECK | MboConstants.NOVALIDATION_AND_NOACTION)

    However how shall substitute the values of <date> and <memo> arguments which are coming from the change status dialog box?

    Any hint/advice? 


    ------------------------------
    Pankaj Bhide
    Computer Systems Engineer
    Berkeley National Laboratory
    Berkeley CA
    ------------------------------


  • 2.  RE: mbo.setValue(status.....) does not insert row into wostatus table

    Posted Tue May 24, 2022 05:06 PM
    Please ignore this post. I found out the answer. It seems that the non-persistent attribute np_statusmemo contains the memo.


    ------------------------------
    Pankaj Bhide
    Computer Systems Engineer
    Berkeley National Laboratory
    Berkeley CA
    ------------------------------