Maximo

Maximo

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

 View Only

MAF Configuration Application – Customizing Change Status 

Thu March 24, 2022 04:08 PM

This document describes option to customize the change status functionality
#Maximo
#AssetandFacilitiesManagement

Statistics
0 Favorited
68 Views
1 Files
0 Shares
44 Downloads
Attachment(s)
docx file
ChangeStatus.docx   20 KB   1 version
Uploaded - Thu March 24, 2022

Comments

Sun May 07, 2023 10:27 PM

In addition, if you need to use the selected status, you can pass the selectedStatus state to myChangeStatusCheck, and use it on your validations.

dialogInitialized(obj) {
    if (obj.name==='woStatusChangeDialog') {
      [...]
      c.changeStatus = (evt) => {
        // do something before
        console.log("******* before changeStatus");
        if (this.myChangeStatusCheck(evt, obj.state.selectedStatus)) {
          oldStatus();
        }
       [...]
      }
    }
  }
  myChangeStatusCheck(evt, newStatus) {
    console.log("******* before changeStatus", newStatus);
    return true;
  }