Filter Service Call Types (optional)
Your organization may want to limit the Service Call Types that technicians can select when creating a new service call or editing an existing service call on their device. For example, you may not want your technicians to be able to select the MC call type.
In MobileTech Administration, select Tools > Launch Resco Cloud Dashboard.
Enter the Email and Password and select Log in.
In the left navigation, select Woodford.
Open the MobileTech Woodford project.
In the left navigation under Components, select Offline HTML.
Double-click entity.
Double-click servicecall.
Complete the steps below.
New Service Call Form
This is the form where technicians create a new service call. MCC is already set up as excluded from the Call Type drop-down when creating a new service call.
Select servicecall-form_new.html.
From the menu bar, select Edit.
Scroll down to the function fetchCallType.
Locate the line:
entity.addFilter().notIn(SCHEMA.calltype.Properties.name, ["MCC"]);
.After the "MCC" enter the call type(s) to be excluded from the Call Type drop-down in the new service call form in MobileTech.
For example, to exclude MC from displaying, you would add ,"MC" so that the line reads asentity.addFilter().notIn(SCHEMA.calltype.Properties.name, ["MCC","MC"]);
Complete the previous steps to exclude additional call types, if necessary.
Select Save.
Publish the project or continue editing below.
Pending Service Call Form
This is the form where technicians are editing a service call that they have created and not yet synced. MCC is already set up as excluded from the Call Type drop-down when creating a new service call.
Select servicecall-form_pending.html.
Scroll down to the function fetchCallType.
Locate the line:
"<value>MCC</value>" +
.Directly below that line, enter a new line for each service call type that you don't want to display.
For example, to exclude MC from displaying, enter this line:"<value>MC</value>" +
Complete the previous steps to exclude additional call types, if necessary.
Select Save.
Publish the project or continue editing below.
Service Call Default Form
This is the default service call form. MCC and MC call types are already set up as excluded. You would only need to edit this Offline HTML form if you are excluding any other call types.
Select servicecall-form_default.html.
From the menu bar, select Edit.
Scroll down to the function fetchCallType.
Locate the line:
"<value>MCC</value>" +
Directly below that line, enter a new line for each service call type that you don't want to display.
For example, to exclude AS from displaying, enter this line:"<value>AS</value>" +
Complete the previous steps to exclude additional call types, if necessary.
Select Save.
Publish the project.