Maximo

Maximo

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

 View Only
  • 1.  Showing default values in SearchMore dialog

    Posted Thu May 07, 2020 05:13 AM
    In the work order application advanced search dialog box the History? and Is Task? fields get automatically populated with 'N'.
    How is this achieved, I would like to add a 'N' to Is child record?

    WOTRACK ADVANCED SEARCH

    We have managed to add code so the child records do not show in the results, but i would like to be able to display a 'N' in the dialog box so users are aware that these are filtered

    ------------------------------
    Richard White
    ------------------------------

    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: Showing default values in SearchMore dialog

    Posted Tue May 12, 2020 03:04 PM
    Edited by System Admin Wed March 22, 2023 11:44 AM
    The historyflag & istask examples you mentioned are done a different way, but the easiest way to provide these default filters is to use a default value control in Application Designer. If you drag the control into the tablebody section of the list tab and set the attribute name, the value you want to default, and that the input mode is query it'll automatically apply that QBE filter so when someone looks at the advanced search dialog they will see that filter is applied. It is a default filter, meaning that if the user has a default query it will NOT do anything and they'll be able to see and remove it in the where clause if they have that access. Below is an example in how we have this configured in SR since that out of box includes historical records.



    ------------------------------
    Steven Shull
    Director of Development
    Projetech Inc
    Cincinnati OH
    ------------------------------



  • 3.  RE: Showing default values in SearchMore dialog

    Posted Wed May 13, 2020 02:06 AM

    Hi Richard

    This history flag is defaulted by the mbo (java) for applications like WO tracking. To replace this you can use the default where clause. However, there is no "is child", Maximo uses the Parent to determine this but effectively a child WO is a WO in its own right, and you can have Parents of Parents etc. if you are not using them as WOs then they should be tasks.

    The default test for child WOs is parent is not null. We have used this in the past when we wanted a separate app for Projects (i.e. the Parent) from WO Tracking (the child WOs).



    ------------------------------
    Helen Fisher
    Marketing Manager & Business Development, BPD Zenith
    Happy to be contacted at helen.fisher@bpdzenith.com
    ------------------------------



  • 4.  RE: Showing default values in SearchMore dialog

    Posted Sat May 07, 2022 02:21 AM
    Hi, 

    Is there a way to set the default values through Automation Script. So whenever user opens Advanced Search option fields are populated through automation script. Reason I am asking we have a requirement to populate custom date fields with starting and ending date of the current month. For instance for the month of January it should be 01/01/2022 and ending field date should have 31/01/2022. 

    Thank you,

    ------------------------------
    Mohammad Hamid Naseer
    ------------------------------