View Only
  • 1.  Removing unwanted status from the Mobile workorder Status list.

    Posted 20 days ago

    Hi All,

    We are using below code to remove the unwanted workorder status from the Workorder Status list from Maximo Mobile. 

    We are observing that this code is not behaving uniformly. 

        // Because this will return items to delete, we need the "inverse" of our desired results.
       async onAfterLoadData(dataSource,items)

      if (dataSource &&"dsstatusDomainList")
    // Ensure we have at least one record
      if (items && items.length>0)
      let filteredItems=items.filter(this.woStatusFilter1);
      await dataSource.deleteItems(filteredItems);

    We are seeing on some occasions it is still displaying the whole list with the unwanted status. On the second click it executes the code and shows the correct list. We do not know why there is delay in executing the code and how can we avoid the frequent occasions when it is happening.

    Please let us know if we are missing something here.

    Priya Dharmapurikar

  • 2.  RE: Removing unwanted status from the Mobile workorder Status list.

    IBM Champion
    Posted 19 days ago

    Hi Priya,

    You're missing the ! on your return on woStatusFilter1


    The filter function should validate the items to be removed from the datasource.

    Maycon Belfort
    BPD Zenith