Maximo

Maximo

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

 View Only
  • 1.  Collapse application section based on field value?

    Posted Fri April 03, 2020 02:33 PM
    Edited by System Admin Wed March 22, 2023 11:44 AM
    In Maximo 7.6.1.1:

    I have a custom section in the Assets application:


    Is there a way to collapse the section by default, if a field value matches certain criteria?

    Example: If PLUSSISGIS = 0 then collapse the section control.

    #Maximo
    #AssetandFacilitiesManagement


  • 2.  RE: Collapse application section based on field value?

    Posted Wed April 08, 2020 10:27 AM
    You should be able to do this with Conditional UI, setting the "collapsed" property to "true" or "false" as needed.

    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Ontracks Consulting
    ------------------------------



  • 3.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 09:00 AM
    I don’t think the collapsed property is available on a section in the
    conditional UI options I tried this yesterday and could not get it to work
    so may not be possible

    Regards
    Steve

    Sent from my iPhoneUnless stated otherwise above:
    IBM United Kingdom Limited - Registered in England and Wales with number 741598.
    Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU




  • 4.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 10:11 AM
    That's sad. Then, maybe plain old putting the sig option on the control and putting a condition on the grant of that sig option to MAXEVERYONE to make the section conditionally and completely disappear will be acceptable.

    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Ontracks Consulting
    ------------------------------



  • 5.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 10:53 AM
    Yes I think that would be the way to go to put a condition on the section for display = true or false

    ------------------------------
    Steve Lee
    Maximo Technical Sales Specialist
    IBM
    Leeds
    ------------------------------



  • 6.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 11:23 AM
    In my opinion, using "display = true or false" is too much work. Not only do you have to open the Conditional UI dialog and put records and data in a fistful of tables, but you also have to remember to include more in your Migration Manager package. Putting the condition on the grant of the sig option is less work that accomplishes the same end. You could argue that it's more work to go back to the sig option definition and hide it after you conditionally grant it*, but I data-load sig option definitions and their (possibly conditional) grants. So, the extra work of hiding the sig option is merely another line in my XML for data loading.

    * If you don't hide a sig option after conditionally granting it to MAXEVERYONE, then admin who doesn't know better might come along and call you, asking what this permission was granted for, or ungrant it be cause they thought "everyone" should not be granted this permission or any permissions in this app. So, it's better to grant Conditional UI sig options to MAXEVERYONE, with a Condition if applicable, and then go clear the Visible checkbox on the Sig Option.

    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Ontracks Consulting
    ------------------------------



  • 7.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 11:41 AM
    Agreed this would be the simplest way if in your case the same condition applies to all users. If the conditions are different depending on security group then maybe the conditional UI is still an option.  In this way then you are only having to work with the UI and the conditions when rules change and these could be just assigned to the READ sigoption. Both methods would work so really just depends on the preferred administration process when any changes occur to the rules you want to implement.

    ------------------------------
    Steve Lee
    Maximo Technical Sales Specialist
    IBM
    Leeds
    ------------------------------



  • 8.  RE: Collapse application section based on field value?

    Posted Thu April 09, 2020 12:03 PM
    In my experience, Conditional UI generally applies to all users. Case in point, the OP's example was based on PLUSSISGIS being set. As such, it drives me nuts that Conditional UI *requires* sig options / security; in my experience, it's extra complexity that is entirely beside the point in over 90% of the cases. Hence, my RFE for making the relationship between Conditional UI and security voluntary. (IBM declined its predecessor, so votes are welcome for my new one.)

    But yes, I agree that, "If the conditions are different depending on security group then maybe the conditional UI is still an option." However, if my RFE was implemented, you could still choose to base the conditions on security group or (better) granted options to satisfy such a case.

    ------------------------------
    Blessings,
    Jason Uppenborn
    Sr. Technical Maximo Consultant
    Ontracks Consulting
    ------------------------------



  • 9.  RE: Collapse application section based on field value?

    Posted Fri November 19, 2021 02:08 PM
    Edited by System Admin Wed March 22, 2023 11:50 AM
    I found a conditional UI property called "expanded".
    But unfortunately, I couldn't get it working.


    Other properties like "display" (value = true/false) worked as expected on sections.
    But when I switched the property value from display (working) to expanded, the expanded property didn't seem to do anything.

    With that said, I don't know if expanded is intended to work with sections or not.

    #Maximo
    #AssetandFacilitiesManagement