Maximo

Maximo

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

 View Only
  • 1.  Maximo mobile - adding new screen to an app

    Posted 08/15/24 08:59 AM
    Hello,

    Could you let me know how we can add a new screen to the tech mobile app? We need to capture feedback from customer once the work is done and this is a new survey screen we want to add for this.

    I was unable to find any online documentation for this. Any help would be appreciated.

    Thanks

    Ritu John


  • 2.  RE: Maximo mobile - adding new screen to an app

    Posted 08/16/24 01:22 AM

    Hi Ritu,

    I assume you already have the fields in Maximo to create the questionnaire in Maximo Mobile. If not, would you consider using Inspection Forms? You can also have tasks with the Inspection form if you have already used it in your WO.

    If your questionnaire is mandatory, you can add a validation to check whether the form was completed before changing the WO status. You can find an example of how to do it here. https://github.com/ibm-maximo-mobile-dev/mobile-scripting/tree/main/samples/inspections

    Otherwise, you'll need to create a page component and add a navigator-tile, for example, to open and navigate to your new page. Another way to do it is to create a button, and the click event will open the page. You can check for the WO edit page searching for the id a7d9q in the app.xml and create a JavaScript function in your AppCustomization.js. 

    Here is the OOTB code for the edit page.

    workOrderEdit(event) {
        let workorder = event.item;
        let woSchema = this.app.findDatasource(event.datasource).getSchema();
         // istanbul ignore next
        if (workorder && (workorder.wonum || workorder.href)) {
         [...]
          this.app.setCurrentPage({
            name: 'woedit',
            resetScroll: true,
            params: { 
              workorder, woSchema ,
              wonum: workorder.wonum,
              istask: workorder.istask,
              wogroup: workorder.wogroup,
              taskid: workorder.taskid,
              wo:event.item
            },
          });
        }
      }

     



    ------------------------------
    If this post helps, please consider accepting it as a solution to help other members find it more quickly.

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