Maximo

 View Only
  • 1.  Maximo Mobile - Validate if Inspections has been completed

    Posted Tue November 21, 2023 01:22 AM

    How can I validate if an inspection associated with the work order has been completed?

    I'm currently saving on localstorage the inspection id when it is completed, but there are a few scenarios where this validation can fail.

    I'm wondering if there is a way to fetch the INSPECTION datasource from TECHMOBILE and check if the inspection is completed.

    Any thoughts?



    ------------------------------
    Maycon Belfort
    Consultant
    BPD Zenith
    Melbourne
    Australia
    ------------------------------


  • 2.  RE: Maximo Mobile - Validate if Inspections has been completed

    Posted Wed November 22, 2023 09:15 AM

    There's not a great way to interact with a transactional datasource defined in another application. You can technically define the same datasources in both applications to then be able to access the data in TECHMOBILE but you need to make sure they're defined exactly the same. Otherwise, when an update to that datasource in TECHMOBILE will update the data in the local database and INSPECTION would no longer have all the data it needs to operate properly. Because transactional records are tagged by the applications & datasources they're associated with, it also means you would need to download the same data multiple times which isn't good from a user experience perspective. And it is hard to keep the datasources synchronized because a check for updates in the inspections application for example will only tag it for that specific application and datasource. 

    This is something we've talked about many times and plan to support. We have an idea (https://ibm-ai-apps.ideas.ibm.com/ideas/MOBILE1-I-66) that while it doesn't exactly describe the problem, the reason we can't do something like this today is because of the above problem. We want to indicate to the user that the inspection is completed but without shared access to the transactional data, it's very difficult to do. 

    Assuming you don't need this offline, the best recommendation I have is to add a button to refresh the WO and then you can check the status of the inspectionresult since we pull in status today. To refresh a single record, you do something like this:

    await ds.load({forceSync:true,itemUrl:item.href});

     
    It's important to know that this only works online and if you have poor connectivity, the request will timeout based on your maximo.mobile.fetch.timeout system property which I've seen some customers set very high (as high as 15 minutes). It's never good to use this for something like validation because of that reason. 



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



  • 3.  RE: Maximo Mobile - Validate if Inspections has been completed

    Posted Wed November 22, 2023 06:05 PM

    Hi Steven,

    Thank you for sharing your thoughts and ideas. I appreciate your input.



    ------------------------------
    Maycon Belfort
    Consultant
    BPD Zenith
    Melbourne
    Australia
    ------------------------------