Monday, 22 August 2016

Custom Field in Non-persistent Object ISSUECURRENTITEM | IBM Maximo

Add a new field in ISSUE CURRENT ITEM dialog and capturing the data in the MATUSETRANS table using automation script.

if owner and owner.getRecordMboName()=="INVENTORY": issueitemMbo=owner.getMboSet("ISSUECURRENTITEM").getMbo(0) if issueitemMbo: mbo.setValue("MATUSETRANScustomaFieldName", issueitemMbo.getString("ISSUECURRENTITEMcustomFieldName"))

Thanks to SASHULL

2 comments:

  1. Hi,

    I do have similar requirement except I need to capture the value of a custom field in the Receive Rotating Item Dialog (ASSETINPUT) and cross it over to the ASSET table.

    I tried this but nothing gets crossover!

    owner= mbo.getOwner()

    if owner and owner.getRecordMboName()=="INVENTORY":
    receiverotitemMbo=owner.getMboSet("ASSETINPUT").getMbo(0)
    if receiverotitemMbo:
    mbo.setValue("ASSETTAG",receiverotitemMbo.getString("ASSETTAG"))

    Any idea?

    Many thanks.

    Gilles

    ReplyDelete
  2. owner= mbo.getOwner()
    if owner:
    #owner.getRecordMboName()=="INVENTORY":
    receiverotitemMbo=owner.getMboSet("ASSETINPUT").getMbo(0)
    if receiverotitemMbo:
    mbo.setValue("ASSETTAG",issueitemMbo.getString("ASSETTAG"))

    This should work ...enjoy ..:):)

    ReplyDelete