Maximo

Maximo

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

 View Only
Expand all | Collapse all

Creating a view: What is the purpose of psdi.mbo.custapp.CustomMboSet ?

  • 1.  Creating a view: What is the purpose of psdi.mbo.custapp.CustomMboSet ?

    Posted Mon November 22, 2021 08:06 PM
    Edited by System Admin Wed March 22, 2023 11:55 AM
    MAM 7.6.1.2:

    When I create a new view object, Maximo automatically populates the Class field with psdi.mbo.custapp.CustomMboSet.

    What is the purpose of that class for custom views?
    The class field is editable. What would happen if I removed that class?

    Thanks.



    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Creating a view: What is the purpose of psdi.mbo.custapp.CustomMboSet ?

    Posted Tue November 23, 2021 08:56 AM
    All objects need a class reference that extends MboSet. This ensures you have the logic for adding new records to the set, saving (or executing if non-persistent), deleting, calling automation scripts on the desired events, implementing data restrictions, setting values, etc. 

    CustomMboSet/CustomMbo is a basic extension of MboSet/Mbo. They have almost no additional logic in them but should be used on all custom objects when you don't have your own java extensions. CustomMbo supports duplication but Maximo doesn't implement that by default in the Mbo class. Each class that extends from it has to declare how to duplicate and if they haven't, Maximo won't allow duplication on it. And as part of the duplication, there's logic to clear out key columns in your object that aren't SITEID/ORGID.

    ------------------------------
    Steven Shull
    ------------------------------