Maximo Open Forum

 View Only

 Customizations in woedit-page of followup-WO in Maximo Mobile

  • Customizations
  • Mobility
Emanuel Lundberg's profile image
Emanuel Lundberg posted 06-03-2025 08:20

Hi forum!

We are trying to implement Maximo Mobile(9.0) in our environment but have some small issues with the followup workorder page in Technician application. In our standard Maximo interface(7.6.1.3) we do not copy description from original workorder to followup workorder.(Description is not included in domain WO2WO) As standard Maximo Mobile function do copy Description from original WO to followup WO we added some code in AppCustomizations.js to erase description on woedit page. We copied event createRelatedAndFollowUpWo(event) and in the end added a few fields shown in bold. Beyond Description we also wanted to make fields of worktype and crewid empty.

   ...
    if (this.app.currentPage) {
      this.app.currentPage.callController('loadRecord', workorder);
      workorder['description'] = ""; // TD CHSA 2025-04-10
      workorder['worktype'] = ""; // TD CHSA 2025-04-10
      workorder['crewid'] = ""; // EUL 2025-05-15
Our problem on the Mobile app is that also the description of the original workorder gets erased when we save the new followup workorder. Worktype and Crewid works as we want. They get erased on followup workorder and stays as is on original workorder. Have any of you members had any similar problems and have any recommendations of how we could get expected behavior? Its hard to try because it works like we want in the role-based app. In that the description-field gets erased in woedit-page of followup work and description of original workorder stays as is when we do save the new followup workorder.
Our next problem is that the save-button on woedit page of followup workorder does not check if required fields on custom fields are filled before the followup workorder gets saved. We have added a field for attribute CREWID and made that field required. 
<box children-sizes="50" direction="row" fill-child="true" fill-parent="true" padding-bottom=".5" padding-top=".5" id="a1_p3qm7">
          <smart-input on-blur="validateFields" enable-lookup-buttongroup="true" label="Arbetslag" required="true" lookup="crewidLookup" select-lookup-attribute="value" value="{dsWoedit.item.crewid}" id="a1_qxgpp"/>
        </box>
In the app the field gets a blue dot-mark to show that it is required but regardless the field is populated or not the followup workorder could be saved. If we put required-mark on any other standard field we can not save the workorder unless it has some data. It has the same behavior both in role-based apps and mobile apps. What else do we need to add to get expacted behaviour even on this part?
To sum it up.
1. We would like to have the description field erased for the user on an followup WO.
2. We would like to force the user to put something in CREWID-field before saving.
If any of you have made something similar, feel free to share so that we could get going with our implementation.
Thanks in advance,
Emanuel