Maximo Open Forum

 View Only
  • 1.  Populating the memo field value on the PM status history

    Posted 11-09-2021 07:43
    Hi Everyone,

    This is in continuation with the discussion I had initiated yesterday to make the PM application stateful.I have managed to create the PM status history dialog and also populated the fields - status,changeby and changedate on the status history table. There is a challenge in populating the memo field as there is some challenge with overriding the changestatus method as the OOTB class has the package access specifier and the custom class which is extended also has to be in the same package or we have to copy the same code to the extended class and change the logic which is also little challenging as some hashtable value is being passed which is also having the default access specifier.

    I have attached the OOTB PM class and we need to either create an overloaded change status method or bypass the call to the OOTB method - pmChangeStatus(String status, boolean rollToAllChildren, Hashtable changedStatusPMs) as this method is setting the memo field to null value and we need to pass the value from the method changeMboStatus in the extended class of the non persistent object PMChangeStatusSet.

    If there is any suggestion with what approach can be done to bring the memo field on the PM status history table,it will be appreciated.

    Thanks,
    Mahadevan

    #Customizations
    #EverythingMaximo

    ------------------------------
    Mahadevan Ramakrishnan
    ------------------------------

    Attachment(s)

    txt
    PMChangeStatus.txt   1 KB 1 version
    txt
    PM.txt   4 KB 1 version


  • 2.  RE: Populating the memo field value on the PM status history

    Posted 11-10-2021 09:35
    I did this but no longer have access to how exactly I did it. It did require a class extension which I believe was done by extending the PMChangeStatus object and adding to the changeMboStatus logic to insert into my custom object (make sure to call super.changeMboStatus so that the core logic always gets invoked). To ensure this is maintained, you need to build a product XML file that indicates you are extending this. Otherwise on a patch your change will be lost.

    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 3.  RE: Populating the memo field value on the PM status history

    Posted 11-11-2021 05:56
    Dear All,

    Thanks for your feedback.

    I was able to achieve the same through Java customization. Initially I used automation script but populating memo was challenging and I extended the OOTB class and implemented the necessary logic and it is working fine.

    regards,
    Mahadevan

    ------------------------------
    Mahadevan Ramakrishnan
    ------------------------------