Maximo

Expand all | Collapse all

Automation script get current mbo values from UI

  • 1.  Automation script get current mbo values from UI

    Posted 12 days ago
    Hello, 

    I have a question for my case:

    Opis ni na voljo
    Is possible to get value from child MBO table MATRECTRANS from column "Številka prejema" last added value which is not saved in database at the moment?

    ------------------------------
    Blaz Rakar
    ------------------------------


  • 2.  RE: Automation script get current mbo values from UI

    Posted 12 days ago
    Hi,

    What application are you using? 
    What is your goal?
    What is you product version?
    You can do this by automation script with attribute launch point and input variable.

    Regards

    ------------------------------
    Davide Procopio
    ------------------------------



  • 3.  RE: Automation script get current mbo values from UI

    Posted 11 days ago
    I'm not sure when you want this to occur to help you with the launch point, but you can do this from an automation script. Go from your child object to the owner and then get the set that you're interested in. For example:

    owner=mbo.getOwner()
    matrecSet=owner.getMboSet("PARENTMATRECTRANS")

    Records can be added to the beginning of the set, at the end of the set, or at a specific point defined inside the set depending on the method called. Testing receiving (both selecting ordered items and users utilizing new row manually) it seems to add at the end. So to get the last MBO in the set, you can call something like this:

    matrecMbo=matrecSet.getMbo(matrecSet.getSize()-1)

    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------