Table of Contents |
---|
Schedule Metadata
K2AServiceLibraryMeta is an endpoint that shows metadata for the other endpoints. For example, this displays the Appointment endpoint. The K2AServiceLibraryMeta endpoint URL can be found in Schedule > installLog.txt in the line Test service with URL: http://yourserver:port/KEY2ACTServiceLibrary/api/K2AServiceLibraryMeta Copy the URL and paste it into your web browser. Firefox will display the JSON file appropriately. Chrome has extensions that can be added to format the JSON display.
Note |
---|
If the value you are seeking is not currently present in the metadata, the value would have to be added by the development team as it requires a data model change. This is not a file that can be customized outside of development. |
Grid Configuration
There are many grids in Schedule. A few examples of the primary grids are:
- Unscheduled/Unassigned Appointments
- Service Calls
- Equipment
- Location Contacts
- Maintenance Contracts
- Jobs
Each of these grids has a columns .json file that indicates the fields of data that can be displayed and the order, as well as the label for the field. There are some restrictions in some grids, where the first few fields are required to be present and in a certain location. Those restrictions are noted in the json files.
You can pick from these column values to tailor Schedule for your users.
Scroll pagebreak |
---|
This section describes the columns.json file.
Label | Actual label that will be displayed on the header of the column. |
Width | The width in pixels of the column. To make a column hidden set the size to 0. |
Types | Defines the type of field the column contains.
|
Align | Defines the alignment for the column, including the header.
|
Sort | Defines the type of sorting for the column.
|
Column Filtering
This section describes how filtering works in the filter boxes on the grid.
- Text Filter: A column type of "rotxt" will use a text filter. Retrieves values which contain mask defined through text field.
- Numeric Filter: A column type of "ron" will use a text filter that allows using comparison operators in it. Retrieves values which contain mask defined through text field.
The possible comparison operators are:
= | Equal to |
> | Greater than |
< | Less than |
? | Less or equal to |
>= | Greater or equal to |
n1..n2 | A range of values |
Anchor | ||||
---|---|---|---|---|
|
See http://yourserver:port/KEY2ACTServiceLibrary/api/K2AServiceLibraryMeta.
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
User-Defined Field Configuration
In Schedule setup, you have the capability to mark the fields to display in specific windows. If your company has utilized any of the user-defined fields (UDF) in Service Management that are not listed , you can add those fields to display as options in the Settings window, and then mark the check box to show the field(s). Conversely, if you do not want UDF fields to display in the Settings window, you can update this information.
The UDF files are found in your install location\Schedule\WebServiceFiles\UDF.
The files are:
- AppointmentUDF.json : Can be displayed on Service, Job, and/or Resource appointment window.
- CustomerUDF.json : Can be displayed on a Customer window.
- LocationUDF.json : Can be display on a Location window.
- WorkOrderUDF.json : Can be display on a Service Call window.
Scroll pagebreak |
---|
{
"Column": "Service_User_Define_9",
"Length": 0,
"Label": "This is my label to display",
"Type": "Date",
"IsUsed": true,
"wsiParameterName": ""
}
Note |
---|
If IsUsed is not set to true, the field will not show up in settings for you to add to the displayed fields. |
Setting up a Field to Display in Schedule Service Call & Appointment Form Fields Settings
For Service Appointments, Job Appointments and Technician Activities:
- To display an appointment UDF field, open the AppointmentUDF.json file in a program that allows you to edit the file (example: Notepad). Edit the following fields within a set of braces { }.
- "Label": User defined label that displays for the property.
- "IsUsed": To display the field, change the IsUsed value to true .
- Save the AppointmentUDF.json file.
For the Service Call form:
Once values are added into the WorkOrderUDF.json file, they become immediately available to add to the forms from the Schedule Settings window.
- To display a service call UDF field, open the WorkOrderUDF.json file in a program that allows you to edit the file (example: Notepad++). Edit the following fields within a set of braces { }.
- "Label": User defined label that displays for the property.
- "IsUsed": To display the field, change the IsUsed value to true .
- Save the WorkOrderUDF.json file.
Adding the User-Defined Field to the Schedule Appointment Window
- Open Schedule, go to Settings > Service Call & Appointment Form Fields.
- Choose the appropriate tab(s) and mark the check box next to the field(s) that you added to update the windows.
- Choose Save.
Scroll pagebreak |
---|
Appointment panel labels and tooltip labels are defined in a similar manner using JSON files. These files are in: Install location\Schedule\WebsiteFiles\Scripts\K2A\SchedulerControl folder.
Adding Cost Code Alias to the Tooltip or Job Appointment Bar
Add this to the tooltipContent.json and eventContent.json:
{
"id": "costCodeAlias",
"label": "Cost Code: ",
"apptType": "Job"
},
Scroll pagebreak |
---|
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Example: Additional User-Defined Fields
In addition to the above fields any user-defined fields in the SV00301 table are available to include such as:
Service_User_Define_1
Service_User_Define_2
Service_User_Define_3
Scroll pagebreak |
---|
This example shows you how to set the Resource box to display only the Tech ID and Primary Skill Level in the Schedule Grid when using the Timeline View.
Go to the folder where the schedulerControl.js file is installed. For a base installation, using the installation defaults, it would be here: Program Files (x86)\Signature\Schedule\WebsiteFiles\Scripts\K2A\ScheduleControl.
- Make a copy of the current schedulerControl.js file and paste it into the same folder, for backup purposes.
- Edit the schedulerControl.js file with Notepad++.
- Go to this part of the code (possibly at the end of the script):
resourceColumnData: function (resource, label) {return "<div id='headerLabel-" + resource.key + "' data-resourceID='" + resource.key + "' class='resourceHeaderDetail' style='height: 100% !important;' ondblclick='COMMON.showResourceDetail(" + resource.key + ")'>\ <div class='resourceDataDetail'>" + label + "</div><div class='resourceDataDetail'>" + resource.resource + "</div><div class='resourceDataDetail'>" + resource.skillLevel + " </div><div class='resourceDataDetail'>" + resource.team + "</div></div>"; - Replace this area of the script with this text:
<div class='resourceDataDetail'>" + resource.resource + "</div><div class='resourceDataDetail'>" + resource.skillLevel + "</div></div>"; - Save changes to the file.
- Launch Schedule.
- CTRL-F5 to update the configuration files.
Example: Modified schedulerControl.js
This is what the schedulerControl.js file will look like AFTER you modify it:
Scroll pagebreak |
---|
Scroll pagebreak |
---|