Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

New service calls cannot be created for inactive service locations from the New Service Call window and from the BOB dashboard in MobileTech. If you want your technicians to be able to create new service calls for inactive locations, you will need to comment out the fetch filter in offline HTML from the new call form.

Table of Contents

...

Update the New Service Call Form

To enable service call creation for inactive locations from the New Service Call Form: 

  1. In MobileTech Administration, go to Tools > Launch Woodford.
  2. Open the MobileTech project.
  3. In the left navigation under Components, select Offline HTML.
  4. Double-click entity.
  5. Double-click servicecall.
  6. Select servicecall-form_new.html
  7. From the menu bar, select Edit.
  8. In the Edit window, scroll down to // ----- LOCATION ----- .
  9. Add the comment out slashes // to the front of the following line:
    entity.addFilter().where(SCHEMA.location.Properties.isinactive, 'eq', 'false')

    Expand
    titleView screenshot

  10. Select Save in the Edit window.
  11. Select Save.
  12. Publish the project
  13. Sync the devices.

Enabling Service Calls and Service Requests from the BOB Dashboard

Updating BOB Dashboard and BOB Fault List

You will only need to do these steps if you are using the Building Optimization Broker integration and you want to allow for service calls and service requests to be created for inactive locations.

Update the BOB Dashboard

To enable service call creation for inactive locations from the BOB Dashboard: 

  1. In MobileTech Administration, go to Tools > Launch Woodford.
  2. Open the MobileTech project.
  3. In the left navigation under Components, select Offline HTML.
  4. Double-click entity.
  5. Double-click bobdata.
  6. Select bob-dashboard.html
  7. From the menu bar, select Edit.
  8. In the Edit window, scroll down to the following line:
    equipment.islocationinactive = JSON.parse(equipment['location.isinactive'].toLowerCase());

  9. You will need to edit the line to add = false; // after equipment.islocationinactive so that the line displays as:
    equipment.islocationinactive = false; //JSON.parse(equipment['location.isinactive'].toLowerCase());

    Expand
    titleView screenshot

    Image Added

  10. Select Save in the Edit window.
  11. Select Save.
  12. Continue with the steps below.

Update the BOB Fault List

To enable service call creation for inactive locations from the BOB Dashboard: 

  1. In MobileTech Administration, go to Tools > Launch Woodford.
  2. Open the MobileTech project.
  3. In the left navigation under Components, select Offline HTML.
  4. Double-click entity.
  5. Double-click bobdata.
  6. Select fault-list.html
  7. From the menu bar, select Edit.
  8. In the Edit window, scroll down to the following line:
    if (location.properties.isinactive || (!canCreateCall && selected.equipment.statusNo === undefined)) {

  9. Remove (location.properties.isinactive ||  from the line so that the line displays as:
    if (!canCreateCall && selected.equipment.statusNo === undefined)) {
    Expand
    titleView screenshot

    Image Added

  10. Select Save in the Edit window.
  11. Select Save.
  12. Publish the project
  13. Sync the devices.