Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Automation script get current mbo values from UI

    Posted Mon April 19, 2021 05:00 AM
    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
    ------------------------------

    #AssetandFacilitiesManagement
    #Maximo


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

    Posted Mon April 19, 2021 09:57 AM
    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 Tue April 20, 2021 02:56 PM
    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
    ------------------------------