Maximo

Maximo

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

 View Only
  • 1.  Get Dynamical values in domain

    Posted Fri April 16, 2021 08:20 AM
    Hello, just a short question.
    I have ann app Receiving where I have 2 tables. First is MATRECTRANS and second is my custom table MXZPACKGAGE. I have created table domain when we clicked at this icon for search, we get in table domain values from table MXZPACKGAGE from column ST.prejema. But here is my problem, I get these values if they are in database, how to achieve that when user will add one row at first table with new value like 1.045 and then without saving to show that in table domain too.
    Any idea how to achieve that, maybe with different option like table domain?
    My code for table domain in screen.

    Opis slike ni na voljo.
    Opis slike ni na voljo.



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

    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Get Dynamical values in domain

    Posted Mon April 19, 2021 09:52 AM
    Hi,

    The rows will not be saved to the database until the user saves.   So, what you need to do is get the set in memory in order to get those new rows.  The details on how to do this depend upon how the relationships work within the application.   For example, you may need to get the parent set and then from their get the other child.  But, a few things to consider.  First, you will need to scroll through the set to get all the rows fetched...Maximo only fetches the displayed rows and pages as the user requests more - this may or may not be a performance concern based on how big a set it can be.  Second, you will need to handle the case where after setting up the data the user then deletes the new row before saving thereby having a row in the bottom with invalid data (note that even if things are being saved you should be checking for this).

    Steve

    ------------------------------
    Steve Hauptman
    ------------------------------



  • 3.  RE: Get Dynamical values in domain

    Posted Tue April 20, 2021 01:25 AM
    Thanks for anwer. How to get values from memory?

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



  • 4.  RE: Get Dynamical values in domain

    Posted Wed April 21, 2021 06:10 AM
    Hi, 

    You need to use an automation script Retreive list of the attribute  then use the implicit variables listMboSet instead of Domainid

    ----
    ListMboSet=mbo.getOwner().getMboSet("MATRECTRANS")


    Don't forget to define srcKeys,targetKeys implicit variable to define the attribute mapping 

    Regards

    ------------------------------
    Abdelmonem Boughdiri
    ------------------------------