Maximo

 View Only
  • 1.  Sort order of Work orders in TECHMOBILE

    Posted Fri November 10, 2023 08:51 AM

    Is it possible to change the default sort order for Work Order Cards in TECHMOBILE?

    Seems like the default sort order is WONUM I would like to sort on SCHEDSTART with the WO withthe closest start date in the top. 



    ------------------------------
    Patrik Nilsson
    ------------------------------


  • 2.  RE: Sort order of Work orders in TECHMOBILE
    Best Answer

    Posted Fri November 10, 2023 09:10 PM

    Assuming you have the Maximo Application Framework (MAF) setup and running the Docker image, it is possible to modify the TECHMOBILE app.xml and include the "order-by" tag. 

    For example:

    <maximo-datasource-override id="todaywoassignedDS" saved-query="ASSIGNEDWOLIST" mobile-qbe-filter="{{'status_maxvalue': '!=COMP,CAN,CLOSE,WAPPR'}, {'status': '!=MCOMP'}}" offline-immediate-download="true" order-by="schedstart,targstartdate"/>

    Will sort the default query - Assigned Work, by scheduled start and target start date



    ------------------------------
    Nivin Jacob George Senior Consultant
    Senior Consultant
    BPD Zenith
    Melbourne VIC
    ------------------------------



  • 3.  RE: Sort order of Work orders in TECHMOBILE

    Posted Sun November 12, 2023 08:44 AM

    Thanks Nivin, 

    Followup question, would it be possible to specify if the sort order should be ASC or DESC?



    ------------------------------
    Patrik Nilsson
    ------------------------------



  • 4.  RE: Sort order of Work orders in TECHMOBILE

    Posted Sun November 12, 2023 10:05 AM

    Hi Patrik,

    I couldn't find it in official documentation but it looks like it's enough to add desc together with attribute name into the order-by property.

    Then framework will change that to this REST call:

    &oslc.orderBy=-wopriority

    If you put only attribute name then default is ASC.

    Example order by wopriority desc:

    <maximo-datasource id="dswolist" object-structure="mxapiwodetail" saved-query="uxtechnicianownerfilter" order-by="wopriority desc" pre-load="false" controller="ScheduleDataController" selection-mode="single" geometry-format="geojson" default="false">

    Screen



    ------------------------------
    Bartosz Marchewka
    ------------------------------



  • 5.  RE: Sort order of Work orders in TECHMOBILE

    Posted 5 days ago

    Hi Patrik , 

    Is this possible to make the sort options /sort order defaulted to "location" for user with security group=group1 and then it should change dynamically whenever the user with different security group login or user the "TECHNICIAN" mobile app(Maximo Mobile)



    ------------------------------
    Nadeem Zaidi
    ------------------------------



  • 6.  RE: Sort order of Work orders in TECHMOBILE

    Posted 5 days ago

    Hi Nivin, 

    Currently our   requirement is to make the default sort order by "location"  based on user group in the ibm maximo technician app, sort order  options  should change dynamically,

    for an example if the user is from "group-a" then the default sort order should be "wopriority" and if the user is from "group-b" the default sort order should be "location".



    ------------------------------
    Nadeem Zaidi
    ------------------------------