Maximo

Maximo

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

 View Only
  • 1.  Ad-hoc report text fields: Align-left instead of align-right

    Posted Mon November 29, 2021 11:59 AM
    Edited by System Test Wed March 22, 2023 11:54 AM
    MAM 7.6.1.2:

    Maximo aligns ad-hoc report text fields to the right, instead of to the left.


    The right-alignment makes it difficult to read the text fields. Especially fields that are hierarchical:
    • Classification hierarchy path
    • Asset or location hierarchy path
    • GL Account
    • Even a simple text field like a DIVISION field would be easier to read if it were left-aligned.

    Is there a way to make text fields align-left in ad-hoc reports?
    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Ad-hoc report text fields: Align-left instead of align-right

    Posted Tue November 30, 2021 08:56 AM
    You could modify the library file (MaximoSystemLibrary.rptlibrary) and import that but that would impact any (including out of the box and custom reports) inheriting the defaults. What I mean by that is where the style is referenced in the report (such as tabledetailslabel) and they didn't explicitly choose an alignment on that field in the report. This works better (IMO) for text fields but will negatively impact cost information in reports where the numbers would now be aligned to the left which makes it harder to read. 

    If you don't want to modify the library you would have to export the report, modify the report, and import it. But if the QBR is modified by the user it will be recreated and your changes would be lost.

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



  • 3.  RE: Ad-hoc report text fields: Align-left instead of align-right

    Posted Fri January 06, 2023 04:54 PM
    I agree that this is an annoyance.  Do you happen to know if an Idea was submitted to allow for column justification/ alignment on Ad-Hoc reports?

    ------------------------------
    Jeremy Boyer
    Associate Consultant Engineer
    Lilly
    Indianapolis IN
    3176517945
    ------------------------------



  • 4.  RE: Ad-hoc report text fields: Align-left instead of align-right

    Posted Fri January 06, 2023 08:52 PM

    Here is a script that will change the alignment of all the fields you add to the "alignLeft" array at the top of the script. It has a launch point on save of the REPORT object.  If you use the VS Code extension, https://marketplace.visualstudio.com/items?itemName=sharptree.maximo-script-deploy it has the configScript block to automatically deploy.

     

    I did basic testing to ensure it works, but if you have any questions please let me know.


    Jason

     

    Jason VenHuizen

    CEO

     

    +1-206-669-6430 | sharptree.io

     






  • 5.  RE: Ad-hoc report text fields: Align-left instead of align-right

    Posted Fri January 06, 2023 08:55 PM
    Apologies, I previously responded in email and IBM stripped the attachment.  I have attached it here in both .js and .txt form in case it filters the .js file.


    ------------------------------
    Jason VenHuizen
    https://sharptree.io
    https://opqo.io
    ------------------------------

    Attachment(s)