Maximo Open Forum

 View Only
  • 1.  Require a Non-Persistent Field

    Posted 06-02-2023 16:14

    Is there a way to Require on Save a Non-Persistent Field on a form?

    In the Asset Application, when the user click on Move/Modify Assets we want either To Location or To Bin to be entered, which both are in the ASSETMOVEDFLT non-persistent object.


    #Analytics
    #Assets
    #Customizations
    #MaximoApplicationSuite

    ------------------------------
    Shannon Stommel
    Insteel Wire Products
    ------------------------------


  • 2.  RE: Require a Non-Persistent Field

    Posted 06-03-2023 15:03

    Hi Shannon,

    You can apply the restriction even if the object or field is non-persistent.

    In the situation that you described, either you can apply restrictions on ASSETMOVEDFLT.DFLTNEWLOCATION and ASSETMOVEDFLT.DFLTNEWBINNUM conditionally, in cross, (in Global Data Restrictions you make DFLTNEWLOCATION required if :DFLTNEWBINNUM is null and DFLTNEWBINNUM required if :DFLTNEWLOCATION is null).

    OR

    Apply conditions directly on the target fields in the Asset table: ASSET.NEWLOCATION, ASSET.MOVEMODIFYBINNUM. With the same logic as above: when one field is blank the other one becomes required.

    The first solution I've tested and it's working, the second one I've tested only partially.

    Best regards,

    Dragos



    ------------------------------
    Dragos Chitu
    EL
    ------------------------------



  • 3.  RE: Require a Non-Persistent Field

    Posted 06-05-2023 09:06

    Hi Dragos!

    I tried your suggestion and when I set DFLTNEWBINNUM to be required in the conditional expression, I'm receiving the following error when adding the condition to the ASSET.NEWLOCATION attribute:

    BMXAA4176E - Attribute DFLTNEWBINNUM does not exist. Gather the logs from the <HOME> directory and determine the process or app referencing the invalid attribute.

    Is there a change I need to make to the DFLTNEWBINNUM attribute?  When I add the DFLTNEWLOCATION to the condition it works fine.

    Thank you,
    Shannon



    ------------------------------
    Shannon Stommel
    Insteel Wire Products
    ------------------------------



  • 4.  RE: Require a Non-Persistent Field

    Posted 06-05-2023 09:41
    Edited by Dragos Chitu 06-05-2023 09:43

    Hi Shannon,

    I'm not sure how you tried to implement it...

    DFLTNEWLOCATION and DFLTNEWBINNUM  are fields in ASSETMOVEDFLT table, not in ASSET table.

    If you want to apply the second solution then you would rely on NEWLOCATION and MOVEMODIFYBINNUM which are in ASSET table.

    An example of the first solution would look like:

    For To Bin field the restriction and condition would look symmetrical.



    ------------------------------
    Dragos Chitu
    EL
    ------------------------------