Enable/Disable Automatic New Form for Empty Lists (optional)
When a technician selects a list tab, if the list has no items, you have the option to have the form to create that item display automatically. You can enable/disable this in Offline HTML for each list by setting the variable autoOpenNewForm to true.
The form auto-open happens the first time you navigate to the corresponding tab within the same instance of the Appointment Completion form.
For example, from the Appointment Completion form, you go to the Inventory tab. The Inventory form automatically opens where you can add the new inventory item. You close the Inventory form without creating a new item (the inventory list is still empty). You click a different tab. Still in the same instance of the Appointment Completion form, when you click the Inventory tab again, the empty Inventory list displays. You would have to select the Add icon to open the inventory form.
The functionality has been added to the following lists. By default, this has been enabled for the Inventory, Purchase Order Detail, and Time Entry (from the Appointment Completion form) lists.
List Name | Offline HTML Entity Folder Name | List File | Default Value |
---|---|---|---|
Additional Work | additionalwork | additionalwork-list.html | false |
Attachment | attachment | attachment-list.html | false |
Change Order | changeorder | changeorder-list.html | false |
Change Order Detail | changeorderdetail | changeorderdetail-list.html | false |
Inventory | consumedinventory | consumedinventory-list.html | true |
Meter Reading | meterreading | meterreading-list.html | false |
Note | note | note-list.html | false |
Purchase Order Detail Form | purchaseorderdetail | purchaseorderdetail-list | true |
Refrigerant | refrigerant | refrigerant-list.html | false |
Time Entry (from Appointment Completion) | laborexpense | laborexpense-list.html | true |
Enable Automatic New Form for an Empty List
- 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.
- Select Offline HTML from the left navigation.
- Double-click the entity folder.
- Double-click the appropriate entity folder. (See the table above for the entity folder name and list file name.)
- Select the appropriate entity list and then select Edit.
- Scroll down to Initial Settings.
- Edit the variable autoOpenNewForm from false to true.
- Select Save.
- Edit any other lists, if needed.
- Publish the project.
- Sync devices.
Disable Automatic New Form for an Empty List
The steps are almost identical to the above steps, except that you will be editing the variable autoOpenNewForm from true to false.